Last active
October 30, 2015 08:17
-
-
Save sleemanj/84e15fda23f79a7852b6 to your computer and use it in GitHub Desktop.
Remove Annoying EEVBlog Ad In Last Post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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