Thursday, December 30, 2010

Using Hotspot Shield to Connect Facebook

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.

Connect FaceBook Using HotSpot Shield

Read More →