Skip to content

Instantly share code, notes, and snippets.

@horimislime
Created December 18, 2011 15:48
Show Gist options
  • Save horimislime/1493743 to your computer and use it in GitHub Desktop.
Save horimislime/1493743 to your computer and use it in GitHub Desktop.
Removes Facebook Like & Google+1 buttons from dmm.com
// ==UserScript==
// @name dmm_nobuttons
// @version 0.1
// @description Removes Facebook Like & Google+1 buttons from dmm.com
// @include http://*dmm.*/*
// ==/UserScript==
(function() {
var ignoreTags=["fb-like","g-plusone"];
for(var i=0;i<ignoreTags.length;i++){
buttons=document.getElementsByClassName(ignoreTags[i]);
for(var j=0;j<buttons.length;j++){
buttons[j].parentNode.removeChild(buttons[j]);
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment