Skip to content

Instantly share code, notes, and snippets.

@erikvold
Created March 13, 2010 04:49
Show Gist options
  • Save erikvold/331120 to your computer and use it in GitHub Desktop.
Save erikvold/331120 to your computer and use it in GitHub Desktop.
This userscript will remove the header of the Wall Street Journal.
// ==UserScript==
// @name Wall Street Journal Remove Header
// @namespace wsjRemoveHeader
// @include http://online.wsj.com/*
// @include https://online.wsj.com/*
// @match http://online.wsj.com/*
// @match https://online.wsj.com/*
// @datecreated 2010-03-12
// @lastupdated 2010-03-15
// @version 0.1.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 header of the Wall Street Journal.
// ==/UserScript==
(function(d){
var hat = d.getElementById('hat_div'),
head = d.getElementsByClassName('header')[0];
if(hat) hat.parentNode.removeChild(hat);
if(head) head.parentNode.removeChild(head);
})(document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment