Bookmarklet / by Sebastian Morales

I found this amazing bookmarklet by Aram Bartholl  (FFFFFAT) that with the help of Ai Weiwei lets you say fuck off to any page with inappropriate content. 

Original photo

Drag Ai Weiwei – FUCK OFF to the bookmark bar to see it yourself!

The bookmarklet itself was inspired by another one before it, where you could see any page through Kanye vision (back in 2009).

Tools to reverse engineer bookmarklets:
http://meyerweb.com/eric/tools/dencoder/
http://jsbeautifier.org/

Here the code:

javascript: (function() {
    kanye_sunglasses = "<a href='javascript:(function(){document.getElementById(\"glasses\").style.display=\"none\";return})();'><img src='http://datenform.de/ai-weiwei-finger.png' width='100%' heigth='100%'></a>";
    var div_popup;
    div_popup = document.createElement('div');
    div_popup.innerHTML = kanye_sunglasses;
    div_popup.id = "glasses";
    div_popup.setAttribute("style", "position:fixed;z-index:1000;top:-10px;right:0px;width:100%;height:100%;");
    document.getElementsByTagName("body")[0].appendChild(div_popup);
})();

Here is mine bookmarklet AreTheyWatching?

Eye by http://oodigi.com/shop/eyeball-3d-model/


javascript: (function() {
    kanye_sunglasses = "<a href='javascript:(function(){document.getElementById(\"glasses\").style.display=\"none\";return})();'><img src='http://s3-ap-northeast-1.amazonaws.com/itpnyu/HackingTheBrowser/HW2/eye1.png' width='150' height='150'></a>";

    var div_popup;
    div_popup = document.createElement('div');
    div_popup.innerHTML = kanye_sunglasses;
    div_popup.id = "glasses";
    var eyeR=0;

    document.addEventListener("mousemove", mouseM);
    div_popup.setAttribute("style", "position:fixed;z-index:1000;top:-75px;left:-75px;width:150px;height:150px;transform:rotate(0rad);");
    function mouseM(e) {
      eyeR= Math.atan((e.pageY)/(e.pageX));
      div_popup.setAttribute("style","position:fixed;z-index:1000;top:-75px;left:-75px;width:150px;height:150px; transform:rotate(" + eyeR + "rad);");
      }

    div_popup.setAttribute("style", "position:fixed;z-index:1000;top:-75px;left:-75px;width:150px;height:150px;");
    document.getElementsByTagName("body")[0].appendChild(div_popup);
})();