jrv
Forum Guru
This is highly, HIGHLY kludgey, but it does seem to work (in the current Firefox, on linux). Using it is a PITA, but it is better than converting by hand.
To create the bookmarklet (in Firefox, on linux), go to your bookmarks toolbar, right-click, new bookmark.... Name can be whatever you like. The Location is (expand the quoted text, copy and paste):
To use (in firefox, on linux), find a link with an old URL, right-click, copy link location. Click on the bookmarklet button you created above. It will prompt you for the old URL; paste it in. Click ok. A new window/tab should open with the page. If the script cannot match the string pasted to a gamesquad URL it understands (e.g. if you type in random characters), it will display a message saying it was unable to parse the string.
This works on my machine for URLs found in gamesquad posts (both old and new) and for URLs found on google.
IMPORTANT: THIS WILL NOT WORK FOR ATTACHMENTS. It will not work for old files. It will work for links to old threads only.
This is UNSUPPORTED. That means, if you have trouble with it on your machine or browser, you have to figure out why. I do not know how to add a bookmarklet to your Opera browser. I do not know which is the bookmark toolbar on your browser. I do not know why your machine opens up hundreds of windows for porn sites. You will have to figure it out.
As a possible clue, I will mention that firefox insists on URL-encoding the javascript. That means that I had to put the percent-sign in as "%25". If your browser does not URL-encode the javascript, you might try replacing "%25" with "%".
JR
To create the bookmarklet (in Firefox, on linux), go to your bookmarks toolbar, right-click, new bookmark.... Name can be whatever you like. The Location is (expand the quoted text, copy and paste):
Save.javascript: (
function(){
var s=prompt('Enter URL','');
s = s.replace(/%253A/gi,':');
s = s.replace(/%252F/gi,'/');
s = s.replace(/%253F/gi,'\?');
var googleRE=/http:\/\/forums.gamesquad.com\/showthread.php\?([0-9]+)-/;
var gamesquadRE=/http:\/\/forums.gamesquad.com\/showthread.php\?t=([0-9]+)/;
var newGamesquadRE=/http:\/\/www.gamesquad.com\/xenforo\/index.php/gi;
var matchesFound=s.toLowerCase().match(googleRE);
if (!matchesFound ) {
matchesFound = s.toLowerCase().match(gamesquadRE);
};
if(matchesFound) {
window.open('http://www.gamesquad.com/xenforo/index.php?threads/'+matchesFound[1]);
}
else {
if ( s.toLowerCase().match(newGamesquadRE ) ) {
window.open( s );
}
else {
alert('Unable to match string as old gamesquad URL.');
}
};
})()
To use (in firefox, on linux), find a link with an old URL, right-click, copy link location. Click on the bookmarklet button you created above. It will prompt you for the old URL; paste it in. Click ok. A new window/tab should open with the page. If the script cannot match the string pasted to a gamesquad URL it understands (e.g. if you type in random characters), it will display a message saying it was unable to parse the string.
This works on my machine for URLs found in gamesquad posts (both old and new) and for URLs found on google.
IMPORTANT: THIS WILL NOT WORK FOR ATTACHMENTS. It will not work for old files. It will work for links to old threads only.
This is UNSUPPORTED. That means, if you have trouble with it on your machine or browser, you have to figure out why. I do not know how to add a bookmarklet to your Opera browser. I do not know which is the bookmark toolbar on your browser. I do not know why your machine opens up hundreds of windows for porn sites. You will have to figure it out.
As a possible clue, I will mention that firefox insists on URL-encoding the javascript. That means that I had to put the percent-sign in as "%25". If your browser does not URL-encode the javascript, you might try replacing "%25" with "%".
JR
Last edited: