BestScriptEver

By Xyan Flux Last update Jul 7, 2008 — Installed 520 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 4 posts, 4 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Xyan Flux Script's Author

Yeah it's possible, but I chose not to because it would take extra time for the script to go through all the links. I limited the search to only links that have style tags on the MB for this reason. Try
var contents = document.getElementById('contents');
var allLinks = contents.getElementsByTagName('a');
for (var i = 0; i < allLinks.length; i++) {
if(allLinks[i].href.match('.*player&ID=hoboID')){
allLinks[i].innerHTML = 'newName';
}
}

 
Mafu Scriptwright

I hope you dont mind, but Ive made the option to add extra names in http://userscripts.org/scripts/show/29827 (if you do I'll remove the post)

Im not all that up with scripting, but was wondering if its possible to make it change all reference to the desired name. Ie based on Hobo ID, Say if that hobo name appears in your last won or lost list on in your lounge or profile page. Is that possible?

 
FreeDoom User

I like it...

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