cursed javascript links (cant even see their output in the status-bar)

in Ideas and script requests
Subscribe to cursed javascript links (cant even see their output in the status-bar) 28 posts, 4 voices



sdfghjklkjhg... Scriptwright

would my browser preferences file help (prefs.js)?

 
sdfghjklkjhg... Scriptwright

javascript on base64 pages wont work on my computer either
www.tinyurl.com/cbcalculator (requires custom buttons addon)
edit:
figured it out it was noscript interfering
edit2:
noscript was not the cause of the script not working

 
sdfghjklkjhg... Scriptwright

Hellz yes got it working!!!

// ==UserScript==
// @name           Gaia Market Link Re-builder.
// @description    Fix links to work like normal link when selling stuff on Gaia.
// @include        http://www.gaiaonline.com/marketplace/mystore/showinventory/
// ==/UserScript==

    var head, script;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    script = document.createElement('script');
    script.type = 'text/JavaScript';
    script.innerHTML = "" +
	"function set() {\n" +
	"x=x+1;\n" +
	"var sell = document.getElementById('sell_'+x);\n" +
	"sell.setAttribute('onclick',sell.getAttribute('onclick').replace(/window.location='/,''));\n" +
	"sell.setAttribute('onclick',sell.getAttribute('onclick').replace(/';/,''));\n" +
	"sell.innerHTML='>a href='+sell.getAttribute('onclick')+'<'+sell.innerHTML+'>/a<';\n" +
	"if (!(sell.getAttribute('onclick')=='')){sell.removeAttribute('onclick');}\n" +
	"if (x>64){set();}\n" +
	"}\n" +
	"var x=-1;\n" +
	"set();" 
    head.appendChild(script);

http://userscripts.org/scripts/show/45221

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel