Skip to content

Instantly share code, notes, and snippets.

@sleemanj
Last active October 30, 2015 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sleemanj/84e15fda23f79a7852b6 to your computer and use it in GitHub Desktop.
Save sleemanj/84e15fda23f79a7852b6 to your computer and use it in GitHub Desktop.
Remove Annoying EEVBlog Ad In Last Post
// ==UserScript==
// @name EEVBlog Remove The Annoyance
// @namespace https://gist.github.com/sleemanj/84e15fda23f79a7852b6
// @updateURL https://gist.github.com/sleemanj/84e15fda23f79a7852b6/raw/eevblog-no-annoyance.user.js
// @downloadURL https://gist.github.com/sleemanj/84e15fda23f79a7852b6/raw/eevblog-no-annoyance.user.js
// @version 0.5
// @description Remove tha silly ad-containing post
// @match http://www.eevblog.com/forum/*
// @copyright 2015+, James Sleeman
// ==/UserScript==
(function(){
var x = document.getElementsByClassName('poster');
if(x.length)
{
if(x[x.length-1].getElementsByTagName('h4').innerHTML == 'EEVblog Electronics Community Forum')
{
x[x.length-1].parentNode.style.display = 'none';
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment