Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

This userscript removes ads from the Wall Street Journal, if it misses any let me know.

View wsjAdRemover.user.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
// ==UserScript==
// @name Wall Street Journal Ad Remover
// @namespace wsjAdRemover
// @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 removes ads from the Wall Street Journal, if it misses any let me know.
// ==/UserScript==
 
(function(d){
var adRemoverFunc = function(){
var classNameAry = ['advertisement', 'adSummary', 'specialAdvertising', 'emailSignUp', 'ad_artBottomCircMarketing'],
tempEle, tempEles;
 
// remove known ad class names
for (var i = 0; i < classNameAry.length; i++) {
tempEles = d.getElementsByClassName(classNameAry[i]);
for (var j = 0; j < tempEles.length; j++) {
tempEles[j].parentNode.removeChild(tempEles[j]);
}
}
}
window.addEventListener( "load", adRemoverFunc, false );
adRemoverFunc();
setTimeout( adRemoverFunc, 2000 );
})(document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.