Created
February 29, 2012 08:47
-
-
Save md-5/1939245 to your computer and use it in GitHub Desktop.
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 DeletedSubmissions | |
// @namespace com.md_5 | |
// @description Hide those pesky deleted Bukkit submissions | |
// @include http://forums.bukkit.org/forums/plugin-submissions.20/* | |
// ==/UserScript== | |
var threadHolders = document.getElementsByClassName("discussionListItems"); | |
for (var i = 0; i < threadHolders.length; i++) { | |
var deletedThreads = document.getElementsByClassName("discussionListItem deleted"); | |
for (var j = 0; j < deletedThreads.length; j++) { | |
threadHolders[i].removeChild(deletedThreads[j]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment