1

The Review Icon came to my screen about a week ago. I find that it is promoting 100 or more new posts every day.

By the time I see this, I have seen the posts already as I tend to look through posts and see whether or not I can assist.

Can I disable this Icon? Thank you

  • Is simply ignoring the button not an option? I suppose you could use a userscript to hide it... – Bob Oct 9 at 0:01
  • I dislike Red Lights on my browser Window. Yes, I can ignore it, but cleaning up so there is nothing there takes 15 or 20 minutes of Post, Review, Post, Review ... until empty. Many duplicates. So for the time being, I ignore but hopefully it might change some day. I am not a programmer, so scripting it beyond me – John Oct 9 at 0:04
  • Do you just want to hide the red, or the button entirely? – Bob Oct 9 at 0:14
  • Just hiding the Red would be nifty as then I can go there in a spare moment and clean it up. Thanks for your thoughts here. – John Oct 9 at 0:16
  • If you absolutely want it gone we could try banning you from review completely. Not sure if/how it would work and seems like a sledgehammer to crack a nut.... – Mokubai Oct 9 at 6:35
  • Just curious as I haven't tried myself but, can it not just be blocked with something like uBlock Origin? Essentially it just sets it's CSS selector as display: none; – J. Scott Elblein Oct 11 at 17:21
4

Here's a userscript that hides the red indicator. Tested with ViolentMonkey in Firefox. Should work in Chrome.

Maybe a bit more complex than it needs to be but I'm unsure if the indicator is updated live (i.e. after the page is loaded) so reused the mutation observer template I had...

// ==UserScript==
// @name          SEHideReviewIndicator
// @namespace     http://vulpin.com/
// @description   Hide the red indicator on review queues
// @match         *://*.askubuntu.com/*
// @match         *://*.mathoverflow.net/*
// @match         *://*.onstartups.com/*
// @match         *://*.serverfault.com/*
// @match         *://*.stackapps.com/*
// @match         *://*.stackexchange.com/*
// @match         *://*.stackoverflow.com/*
// @match         *://*.superuser.com/*
// @version       1.0.0
// @grant         none
// ==/UserScript==

(function() {
var Program = {
    main: function() {
        window.removeEventListener('load', mainEventListener, false);

        var node = document.querySelector('.js-review-button');

        var observer = new MutationObserver(function(mutations, observer) {
            mutations.forEach(function(mutation) {
                Program.processNode(mutation.target);
            });
        });

        observer.observe(node, {
            attributes: true,
            attributeFilter: ['class']
        });

        Program.processNode(node);
    },

    processNode: function(node) {
        if (node.classList.contains('_danger-indicator')) {
            console.log('Hiding red indicator on review button ', node);
            node.classList.remove('_danger-indicator');
        }
    }
};

var mainEventListener = Program.main.bind(Program);

window.addEventListener('load', mainEventListener, false);
})();

Also doesn't really handle recursion so it could in theory get stuck in a loop, but in practice that would only happen if the indicator were re-added every time I remove it. Which would be an odd action for the site scripts to take.

  • Thank you. Where and how do I run this. I have the script in a desktop file (script.txt) on my computer. I am using Chrome currently, though I use Edge as well. – John Oct 9 at 0:36
  • @John If you install a userscript extension (Violentmonkey, Tampermonkey), you should be able to create a new script in one of them and copy-paste the script in and save. Alternatively, you can save the file with the extension .user.js and open it in the browser (after you have one of those extensions installed). Or use this raw gist link. – Bob Oct 9 at 0:59
  • I have tried to run it. Let me see what happens (say) tomorrow. Thank you. – John Oct 9 at 1:11
  • So far fewer issues. I would not like to be banned if possible – John Oct 9 at 11:47
  • @John I assume the banned comment was meant to be a response to Mokubai on the question? – Bob Oct 9 at 13:06
  • I assume so, yes – John Oct 9 at 14:19
  • Type ahead went screwy. I meant just: Yes – John Oct 9 at 15:25
  • lol, "ViolentMonkey". – J. Scott Elblein Oct 11 at 17:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .