Skip to content

Instantly share code, notes, and snippets.

@erikvold
Created March 13, 2010 05:17
Show Gist options
  • Save erikvold/331129 to your computer and use it in GitHub Desktop.
Save erikvold/331129 to your computer and use it in GitHub Desktop.
This userscript will remove the related stories sections on the Wall Street Journal.
// ==UserScript==
// @name Wall Street Journal Remove Related Stories
// @namespace wsjRemoveRelatedStories
// @include http://*.wsj.com/*
// @include http://wsj.com/*
// @include https://*.wsj.com/*
// @include https://wsj.com/*
// @match http://*.wsj.com/*
// @match http://wsj.com/*
// @match https://*.wsj.com/*
// @match https://wsj.com/*
// @datecreated 2010-03-12
// @lastupdated 2010-03-12
// @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 related stories sections on the Wall Street Journal.
// ==/UserScript==
(function(d){
var relatedArticles=d.getElementsByClassName('relatedArticlesAuto'),
ra;
for(var i=0; i<relatedArticles.length; i++){
ra=relatedArticles[i];
ra.parentNode.removeChild(ra);
}
})(document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment