RuneScape FullScreen

By JoeSimmons Last update Jul 29, 2009 — Installed 3,986 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 5 posts, 3 voices



Jesse Andrews Admin

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

 
JoeSimmons Script's Author

I'm keeping mine the simple, fast css way.

Edit: Decided to delete the ads instead of hide them because the ads will refresh over time and even though they can't be seen, they would still waste bandwidth.

 
Tim Smart Scriptwright

I had a comparison of the two methods and in terms of 'apparent speed' there was absolutely no noticeable difference between the two attempts.

On paper, I bet there is slight difference in execution times, as the getElementsByTagName function has to loop through the three <tr> elements before returning the array.

This would be possibly quicker, as it uses no methods to identify the <tr> element, but rather pre-defined properties:

var tr = document.getElementById('gametable').childNodes[1].childNodes[0];
tr.parentNode.removeChild(tr);

 
JoeSimmons Script's Author

I appreciate your comment, but I just used css to simply and quickly remove ads.
Your getElementsByTagName script, no offense, is slow. That's a slow method to begin with. All I simply did was add a css rule (quick and effective)
I could make the script just one simple line of code but I made the script so it works on Firefox, or Opera. It works faster than you probably think on Firefox because at first run, it stores the css in a var then checks to see if GM_addStyle is available, if so, it uses that (most people will use Firefox for this so it will be fast) Alternatively, it checks to see if addStyle exists, then if not, it creates it's own function to work on any browser and adds the css to the page.
There's also a stylish script that I made that is so fast you never see the ads once (here)

 
Tim Smart Scriptwright

Hey, nice little script you got going there. You possibly could even make it even simpler and cleaner.
Jagex has put the ads in the first <tr> element of the 'gametable', so you can do this to completely wipe the top section out:

var tr = document.getElementById('gametable').getElementsByTagName('tr')[0];
tr.parentNode.removeChild(tr);

Also, have a look at my 'RuneScape Assist' script and let me know what you think. I need some feedback to see how I can add and improve to 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