How To Remove Hotspot Shield Ads In Firefox

If you use Hotspot Shield often I’m sure you do not appreciate the ads that are displayed at the top of every page you visit. I’m going to present a method to remove Hotspot Shield ads. The following trick works for Firefox 3.6.

Firstly, you need to install the Greasemonkey add-on, that is capable of running user defined scripts. Just click on the Add to Firefox button and follow the steps.

After the add-on is installed, you will need to add a script. Here are the steps to follow:

1. Go to Tools -> Greasemonkey -> New User Script

2.   Enter a Name, Namespace, Description and add “*” for Includes (this will apply the scripts for all visited pages)

3. After you press Ok, you will be asked to choose a text editor to use for the script code. You can choose Notepad(C:\WINDOWS\Notepad.exe).
4. Enter the following code in the Notepad window (taken from Userscripts and modified by BuzzCrunch):

nodes = document.evaluate(“//div”, document, null,
    XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);

for (var i = 0; i < nodes.snapshotLength; i++) {
    thisLink = nodes.snapshotItem(i);
    if(thisLink.className.indexOf(‘AF’) == 0)
        thisLink.parentNode.removeChild(thisLink);
}

var css = “html {margin-top:0px !important;}”;
if (typeof GM_addStyle != “undefined”) {
    GM_addStyle(css);
} else if (typeof addStyle != “undefined”) {
    addStyle(css);
} else {
    var heads = document.getElementsByTagName(“head”);
    if (heads.length > 0) {
        var node = document.createElement(“style”);
        node.type = “text/css”;
        node.innerHTML = css;
        heads[0].appendChild(node);
    }
}

5. Save the file.

You are now able to browse anonymously using Hotspot Shield without the annoying ads beeing shown.

This entry was posted in Misc and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.
  • Stay up to date with all the latest news on VPN services, hide IP tools, online anonymity, anonymous browsing, and many more. Your email will be kept private and never shared with anyone.

    Subscribe via Email:    

    I respect your privacy. You may unsubscribe at any time with just one click.

4 Comments

  1. Brooke
    Posted February 25, 2010 at 1:31 pm | Permalink

    Or you can just install AdBlock Plus, which will block all unwanted ads.

  2. Chesterdkat
    Posted February 27, 2010 at 2:15 pm | Permalink

    Imagine if everyone did this, we’d all loose a great free resource. How sad it would be to have to pay for a VPN…

  3. Joey
    Posted May 31, 2011 at 7:07 am | Permalink

    @Chesterdkat

    I agree with you, but those adds sucks a lot.

  4. Rob
    Posted June 12, 2011 at 9:18 am | Permalink

    Adblock seems to work. Just add anchorfree to the filter list and the annoying ads are gone.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Claim Your FREE Copy Of The
    “Protect Your Privacy NOW!” E-Book

    • 6 Reasons Why YOU Should Hide Your IP Address
    • What does your IP address reveal about you?
    • Is hiding your IP address legal?
    • The pros and cons of hiding your IP address
  • Recommended Hide IP Services