Last active
December 28, 2015 21:59
-
-
Save tetsutan/7568477 to your computer and use it in GitHub Desktop.
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 Facebook disabler | |
// @namespace eckrel.com | |
// @include * | |
// @version 1.0.2 | |
// @grant none | |
// ==/UserScript== | |
(function(w){ | |
var href = w.document.location.href; | |
var disables = [ | |
/apis\.google\.com\/.*\/\+1\/fastbutton/, | |
/www\.facebook\.com\/plugins\/.*/, // include like, like_box, share | |
] | |
for(var key in disables){ | |
if(href.match(disables[key])){ | |
w.document.body.style.display = "none"; | |
} | |
} | |
})(this.unsafeWindow || this); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment