Skip to content

Instantly share code, notes, and snippets.

@md-5
Created February 29, 2012 08:47
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 md-5/1939245 to your computer and use it in GitHub Desktop.
Save md-5/1939245 to your computer and use it in GitHub Desktop.
// ==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