|
|
would my browser preferences file help (prefs.js)? |
|
|
javascript on base64 pages wont work on my computer either
|
|
|
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 |