ThePlatoon.com
August 30, 2008, 10:10:20 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Look around and get acquainted to the new settings and features.
 
  Home   Forum   Help Search Calendar Login Register  
  Shop Gallery  
Pages: [1]   Go Down
  Print  
Author Topic: Redirecting a webpage to a local folder...?  (Read 627 times)
0 Members and 1 Guest are viewing this topic.
Zazoo
Administrator
Hero Member
*****

Rep: 13
Offline Offline

Posts: 1324
1669.50 credits

View Inventory
Send Money to Zazoo

View Profile WWW
« on: February 14, 2008, 06:27:16 AM »

Ok... I'm not even sure if this is possible but:

I play a simple turn-based strategy game online. The artwork for the game pieces/tiles are in a folder on the website (e.g. www.somegame.com/images).
The graphics for the game elements suck. I'd like to make my own tileset to use in their place, but since I don't have upload access to that website's images folder I can't just put new ones in.

What I want to do is just tell my browser (some how), that whenever it needs to load something from that URL/remote folder (www.somegame.com/images) it should use a local folder instead (with my replacement image files in it). Is there anyway to do this? Basically I just need to map a specific web folder to a local folder.

Thanks!
~Mike
« Last Edit: February 14, 2008, 06:33:28 AM by Zazoo » Logged

farmboy
4:31 mile
Sr. Member
****

Rep: 9
Offline Offline

Posts: 863
3141.50 credits

View Inventory
Send Money to farmboy


View Profile
« Reply #1 on: February 14, 2008, 06:55:07 AM »

You have firefox?  Download greasemonkey and write a code that replaces any instances of the image folder's url to "file:///C:/*desired local subdirectory*"  That's the protocol for access to local content.
Logged

SilentEdge
Administrator
Sr. Member
*****

Rep: 10
Offline Offline

Posts: 779
252.00 credits

View Inventory
Send Money to SilentEdge
thesilentedge@hotmail.com
View Profile
« Reply #2 on: May 29, 2008, 07:38:21 AM »

Could one run an .exe this way?
Logged

Ronin
Full Member
***

Rep: 0
Offline Offline

Posts: 445
584.00 credits

View Inventory
Send Money to Ronin

View Profile WWW
« Reply #3 on: June 28, 2008, 05:53:20 PM »

I think you'd need a plug-in for the browser, Mike that looked at all the page requests and
substituted a specified URL when it saw URL it was linked to.

You know, you could store the redirects in a linked list with just a scan URL for matching
and another URL to substitute for the matched part of the URL.

I don't know how hard it is to write plug-ins for FireFox or if a plug-in would have access
to all the page requests.  But that would, I think, be the best/easiest way to go about it.
Logged

Just an average schmo.
    * Intel Core 2 Duo 2.4Ghz, 3GB DDR2-667 RAM
    * GeForce 8800GTX PCI-Express 16, 768MB
No XBox 360 :sad:
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
SMF Theme © Gaia
Valid XHTML 1.0! Valid CSS!