• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Is there a way to disable the numbered notification on open tabs?

    Opera for Windows
    2
    4
    1657
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 75338a
      75338a last edited by

      Many websites incl. this forum put a little number on the tab when you have unread notifications. I would like to disable this, specifically for Discord. Nothing on the Discord settings seem to work, incl. "mute all notifications" etc.

      There does not appear to be an Opera or Chrome extension to do this. Help? Is there maybe a flag setting for it?

      See previous post at https://forums.opera.com/topic/30663/permanently-remove-alert-number-from-tab-bar and see image below.

      Screenshot_20221212_112412.png

      Reply Quote 0
        1 Reply Last reply
      • burnout426
        burnout426 Volunteer last edited by

        https://stackoverflow.com/questions/65719387/browser-tab-badge-notification shows how it's done. The page uses Javascript to modify the <link> element in the page that specifies the favicon (https://forums.opera.com/favicon.ico in this case for this page here) for the page/tab. The page changes the favicon to one that has the unread count on it.

        You might be able to use Violent Monkey to block the changing of the favicon like this forums.opera.com example:

        // ==UserScript==
        // @name        New script - opera.com
        // @namespace   Violentmonkey Scripts
        // @match       https://forums.opera.com/*
        // @grant       none
        // @version     1.0
        // @author      -
        // ==/UserScript==
        
        console.log("Favicon Change Blocker Script Activated");
        
        var originalhref = HTMLLinkElement.prototype.__lookupSetter__("href");
        HTMLLinkElement.prototype.__defineSetter__("href", function(val) {
          if (this.rel === "icon" && this.type === "image/x-icon") {
            console.log("Favicon change blocked! (href property)");
            console.log(this);
            console.log(val);
            return;
          }
          originalhref.call(this, val);
        });
        
        /*
        var originalSetAttribute = HTMLLinkElement.prototype.setAttribute;
        HTMLLinkElement.prototype.setAttribute = function(name, val) {
          if (this.rel === "icon" && this.type === "image/x-icon" && name.toLowerCase() === "href") {
            console.log("Favicon change blocked! (setAttribute() function)");
            console.log(this);
            console.log(val);
            return;
          }
          originalSetAttribute.call(this, name, val);
        };*/
        

        Test it on this site and watch the console (ctrl + shift + j) to see the image/png data URL the page tries to set for the favicon.

        I didn't test the script a lot, so you'll have to test it (on Discord for example) and make sure it doesn't break anything.

        Reply Quote 1
          1 Reply Last reply
        • burnout426
          burnout426 Volunteer last edited by

          Besides working around the issue yourself, it would be up to the site to offer an option to control it. Not sure if Discord has that in the settings on the site or not.

          Reply Quote 1
            75338a 1 Reply Last reply
          • 75338a
            75338a @burnout426 last edited by

            @burnout426 Thank you very much. Discord indeed does not have a setting to stop this.

            Reply Quote 1
              1 Reply Last reply
            • Locked by  leocg leocg 
            • First post
              Last post

            Computer browsers

            • Opera for Windows
            • Opera for Mac
            • Opera for Linux
            • Opera beta version
            • Opera USB

            Mobile browsers

            • Opera for Android
            • Opera Mini
            • Opera Touch
            • Opera for basic phones

            • Add-ons
            • Opera account
            • Wallpapers
            • Opera Ads

            • Help & support
            • Opera blogs
            • Opera forums
            • Dev.Opera

            • Security
            • Privacy
            • Cookies Policy
            • EULA
            • Terms of Service

            • About Opera
            • Press info
            • Jobs
            • Investors
            • Become a partner
            • Contact us

            Follow Opera

            • Opera - Facebook
            • Opera - Twitter
            • Opera - YouTube
            • Opera - LinkedIn
            • Opera - Instagram

            © Opera Software 1995-2025