cursed javascript links (cant even see their output in the status-bar)
|
|
does anyone know of a script that will allow me to open them in a new tab
|
|
|
That link requires a log-in. And bugmenot doesn't work. You could try this add-on... Smart Middle Click
...it might work. |
|
|
tried it some time back did not work |
|
|
i made an account so you can login in
|
|
|
username: dam javascript links password: 172839456. Note - session cookies are not accepted. "dam(n)" - I know what you mean - javascript links can be annoying as hell. Pre tags are good for giving a code sample or for making the font courier (which can make things clearer). example of a javascript link http://pastebin.mozilla.org/562896 I hope other people work on this too - I'm the opposite of a speed demon when it comes to programming. --- By the way (I know this isn't what you want.) to open that image - or images at the site in a new tab...
on the image
...you can do that for any "normal" image and at that site - at least on those small images - it works. |
|
|
Either set the target to |
|
|
He's asking for somebody to write the script - somebody like, I dunno... you... --- edit Also... >> does anyone know of a script that will allow me to open them in a new tab I think he wants the javascript links converted into plain links. |
|
|
do you think you could modify http://userscripts.org/scripts/show/10555 to work on this
|
|
|
worked on it a bit, if anyone wants to take it further, here it is:
// ==UserScript==
// @name Gaia Online Link Rebuilder
// @namespace #avg
// @description Fixes links on gaia online
// @include http://*gaiaonline.com/*
// ==/UserScript==
items=document.evaluate("//div[contains(@id,'sell_')]",document,null,6,null);
for(i=0;i<items.snapshotLength;i++) {
var cur=items.snapshotItem(i);
link=document.createElement("a");
with(cur) {
var temp=/'([^']+)/.exec(getAttribute("onclick")) || ["null","null"];
link.href=temp[1];
appendChild(link);
removeAttribute("onclick");
}
var temp=cur.firstChild.cloneNode(true);
cur.removeChild(cur.firstChild);
cur.firstChild.appendChild(temp);
}
going to do homework now |
|
|
>> do you think you could modify ../10555 What you want requires much more. That script is just a one line and it uses an unsafe method. http://userscripts.org/scripts/review/10555 Also the scriptwright made Include all pages "*". Posting such a script that uses an unsafe method to be used everywhere is a horrible idea. Anyway, I bet somebody else will take over from avg. The code is way over my head. |
|
|
thanks that is the hard part that much i can tell unfortunately i don't know enough javascript to finish this script
// ==UserScript== // @name Gaia Online Link Rebuilder // @namespace #avg // @description Fixes links on gaia online // @include http://*.gaiaonline.com/marketplace/mystore/showinventory/* // @include http://gaiaonline.com/marketplace/mystore/showinventory/* // @exclude http://*.gaiaonline.com/marketplace/mystore/showinventory/*/* // @exclude http://gaiaonline.com/marketplace/mystore/showinventory/*/* // ==/UserScript== |
|
|
can you possibly have it do this to the html code so it will work
notice the link comes before the image in the code |
|
|
come on for peat sakes i cant display the html code :(
|
|
|
If you want to post something that gets wrecked by the pre tags you can post it mozilla's pastebin |
|
|
If you want to post something that gets wrecked by the pre tags you can post it mozilla's pastebin http://userscripts.org/scripts/show/34094 |
|
|
since it took me so long to find the edit post and delete post links i made
|
|
|
would somebody please finish that script that was started by avg
|
|
|
oh if you just want new tab, this should work: // ==UserScript==
// @name Gaia Online Link Rebuilder
// @namespace #avg
// @description Fixes links on gaia online
// @include http://*gaiaonline.com/*
// ==/UserScript==
items=document.evaluate("//div[contains(@id,'sell_')]",document,null,6,null);
for(i=0;i<items.snapshotLength;i++)
with(items.snapshotItem(i)) {
var link=((getAttribute("onclick")||"null").match(/'[^;]+/)||[""])[0];
setAttribute("onclick","window.open("+link+")");
}
|
|
|
it has no effect for some reason
|
|
|
window.open should've worked.... try this: // ==UserScript==
// @name Gaia Online Link Rebuilder
// @namespace #avg
// @description Fixes links on gaia online
// @include http://*gaiaonline.com/*
// ==/UserScript==
items=document.evaluate("//div[contains(@id,'sell_')]",document,null,6,null);
for(i=0;i<items.snapshotLength;i++)
with(items.snapshotItem(i)) {
var link=((getAttribute("onclick")||"null").match(/'([^;]+)/)||["",""])[1];
removeAttribute("onclick");
onclick=null;
addEventListener("click",function(){GM_openInTab(document.domain+link)},false);
}
|
|
|
no effect the html reads window.location
|
|
|
LOL Did you even install the script then? Right click on the monkey and check that it's running on the page. Try it out for both scripts, because I tested them, and they're definitely working. |
|
|
// ==UserScript==
// @name Gaia Online Link Rebuilder
// @namespace #avg
// @description Fixes links on gaia online
// @include *
// ==/UserScript==
items=document.evaluate("//div[contains(@id,'sell_')]",document,null,6,null);
for(i=0;i<items.snapshotLength;i++)
with(items.snapshotItem(i)) {
var link=((getAttribute("onclick")||"null").match(/'([^;]+)/)||["",""])[1];
removeAttribute("onclick");
onclick=null;
addEventListener("click",function(){GM_openInTab(document.domain+link)},false);
}
refusing to show full code so... http://pastebin.mozilla.org/565062 it opened in same tab i am using tab mix plus if that could effect it single window mode is on it is enabled i reinstalled it just to be safe using noscript,addblockplus also javascript is enabled greasemonkey 8.200... firefox 3.03 |
|
|
ill check it out later. as for typing in code, where there's a Or, you can install my modified version of alien_scum's script, whose code is here: http://pastebin.ca/1230822 . |
|
|
if you get board
|
