Skip to content

Instantly share code, notes, and snippets.

@erikvold
Created March 15, 2010 14:11
Show Gist options
  • Save erikvold/332859 to your computer and use it in GitHub Desktop.
Save erikvold/332859 to your computer and use it in GitHub Desktop.
This userscript will remove the share box from Foreign Policy articles.
// ==UserScript==
// @name Foreign Policy Remove Share Boxes
// @namespace fpRemoveShareBox
// @include http://www.foreignpolicy.com/articles/*
// @include https://www.foreignpolicy.com/articles/*
// @match http://www.foreignpolicy.com/articles/*
// @match https://www.foreignpolicy.com/articles/*
// @datecreated 2010-03-15
// @lastupdated 2010-03-15
// @version 0.1
// @author Erik Vergobbi Vold
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// @description This userscript will remove the share boxes from Foreign Policy articles.
// ==/UserScript==
(function(d){
var shareBox=d.getElementById('share-box');
if (shareBox) shareBox.parentNode.removeChild(shareBox);
shareBox=d.getElementById('share-more');
if (shareBox) shareBox.parentNode.removeChild(shareBox);
})(document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment