Skip to content

Instantly share code, notes, and snippets.

@tetsutan
Last active December 28, 2015 21:59
Show Gist options
  • Save tetsutan/7568477 to your computer and use it in GitHub Desktop.
Save tetsutan/7568477 to your computer and use it in GitHub Desktop.
// ==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