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.

Install GreaseMonkey add-on

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.

Remove Hotspot Shield Ads - GreaseMonkey Add-on

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

Remove Hotspot Shield Ads - Ad Remover

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,

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

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

5. Save the file.

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

Do you know other methods to remove Hotspot Shield ads? Let us know in the comments below.

Related Posts

4 comments… add one
  • Brooke Feb 25, 2010

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

  • Chesterdkat Feb 27, 2010

    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…

  • Joey May 31, 2011


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

  • Rob Jun 12, 2011

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

Leave a Comment

Scroll Up