Hotspot Shield ad remove

By nox.freak Last update Apr 10, 2010 — Installed 45,577 times.

The beginnings

in
Subscribe to The beginnings 3 posts, 2 voices



nox.freak Script's Author

I know this is a very basic script but it seems to work for me.
I will refine it as time passes to see if I can make it less of a hack. Please let me know if you find it doesn't work for you or if you think something could be added/changed.

 
Leo Janeway User

Thanks for the script.

This script breaks the navigation menu of a private track site, FYI. I propose this fix:

CHANGE:

if (pattern.test(allDIVTags[i].id))

INTO:

if (pattern.test(allDIVTags[i].id) && allDIVTags[i].id!= "qm0")

This fix is kinda clumsy cos using class to match the ad div is someway more accurate. The regex is like AFc_all\d+

And I think completely removing the ad area might be better, so I suggest:

CHANGE

allDIVTags[i].style.display='none';

INTO

allDIVTags[i].parentNode.removeChild(allDIVTags[i]);

 
nox.freak Script's Author

Thanks Leo,

I made this script when I was testing Hotspot Shield, I no longer use it as I have my own Proxy server but I will add your changes to the script for others.

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