Created
December 18, 2011 12:06
Guardian App Avoider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Guardian App Avoider | |
// @namespace fbguardian | |
// @match *://*.facebook.com/* | |
// @author Samuel Gaus | |
// @description This userscript avoids Guardian links leading to the app on Facebook | |
// ==/UserScript== | |
var anchors = document.getElementsByTagName('a'); | |
for(var i=0;i<anchors.length;i++){ | |
var host = anchors[i].hostname; | |
if(host && ( (host == "www.guardian.co.uk") || (host == "guardian.co.uk") ) ){ | |
anchors[i].onmousedown = null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment