Skip to content

Instantly share code, notes, and snippets.

@Bhargav-Rao Bhargav-Rao/HideIgnored.js Secret
Last active Nov 15, 2017

Embed
What would you like to do?
// ==UserScript==
// @name Hide the Ignored
// @namespace http://bhargavrao.com
// @version 0.1
// @description Hides those posts that you've already seen in the queue
// @author bhargavrao
// @match *://*.stackoverflow.com/admin/*
// @include *://*.stackoverflow.com/admin/*
// @grant none
// ==/UserScript==
(function() {
$('.flag-container > :nth-child(1)').append("<br> <input type='checkbox' class='hide-ignored'/> Hide ignored posts");
$('.flag-container > :nth-child(1)').show();
$('.hide-ignored').change(
function(){
if ($(this).is(':checked')) {
$(".tagged-ignored").each(
function(index){
$(this).parent().hide();
}
);
}
if ($(this).is(':checkbox:not(:checked)')) {
$(".tagged-ignored").each(
function(index){
$(this).parent().show();
}
);
}
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.