Skip to content

Instantly share code, notes, and snippets.

@erikvold
Created March 12, 2010 08:03
Show Gist options
  • Save erikvold/330141 to your computer and use it in GitHub Desktop.
Save erikvold/330141 to your computer and use it in GitHub Desktop.
This userscript will hide job ads at Stack Overflow.
// ==UserScript==
// @name Stack Overflow Hide Job Ads
// @namespace stackoverflowHideJobAds
// @include http://stackoverflow.com/*
// @match http://stackoverflow.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 hide job ads at Stack Overflow.
// ==/UserScript==
(function(d){
var ele, eles = d.evaluate("//div[contains(@class,'everyonelovesstackoverflow') or contains(@class,'welovestackoverflow')]",d,null,7,null);
for(var i=0; i < eles.snapshotLength; i++){
ele = eles.snapshotItem(i);
ele.parentNode.removeChild(ele);
}
})(document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment