Disable message bar asking to allow a hidden plugin

14

5

I've set Firefox to always ask me whether to activate a plugin when a site uses them. Normally, I will see a grey box on the page where the plugin is used, in which I can click to activate it.

For some pages, however, Firefox displays a large bar at the top asking me whether to active the plugin, see the image below. I assume this is because the flash or applet is not actually visible on the page, but it used to just be a small, brief message in the address bar, instead of a big, intrusive bar I have to manually close down. And it's unnecessary too, since I can just click on the plugin icon next to the address (also seen in the image) if I wanted to activate these hidden plugins.

How do I stop this bar from appearing? I've searched all over Google, and under about:config too, but found no answer.

The bar in question

user299493

Posted 2014-02-12T12:13:20.980

Reputation:

Great question. I really wish Mozilla would stop ruining their UI. – BoffinBrain – 2014-11-29T17:30:21.973

Are you running Ubuntu? What Firefox version are you using? – and31415 – 2014-02-12T14:28:30.547

@and31415 Yes, and 27 – None – 2014-02-12T14:33:57.507

Answers

13

Solution

I was annoyed too by the notification since it was introduced. There's no user setting which can control it, and probably there never will be. Disabling click-to-play wasn't an option for me, so I looked for possible solutions.

The manual way

I'm listing this first as it's the most efficient way.

  1. Close Firefox.

  2. Add the following code to your userChrome.css file:

    notification[value="plugin-hidden"]
    {
        display: none !important;
    }
    

    It is located in the chrome subfolder inside your Firefox profile folder. Create one in case it doesn't exists already. Here's an example: userChrome-example.css.

    Note As reported by @Smylers, !important doesn't seem to be needed and could be omitted.

  3. Start Firefox again.

Userstyle

If you have the Stylish add-on installed, you can get the Notification bar for 'hidden plugin' - disable style:

This style hide notification bar (infobar) for hidden plugin activations - eg. hidden frame or non-visible div.

Using an add-on

Install the Hide Plugin Notifications add-on:

Hides the hidden-plugin information bar in Firefox.

It basically injects the custom CSS code every time you visit a website. No restart required.

References

and31415

Posted 2014-02-12T12:13:20.980

Reputation: 13 382

I'd really like to give you zillions of +1. – metadings – 2014-08-05T11:23:01.893

You're a life-saver. I can't believe how many sites use hidden Flash trackers. – BoffinBrain – 2014-11-29T17:29:20.140

Sadly the add-on no longer works, but the userChrome.css still does. – RomanSt – 2015-08-14T14:46:05.950

1Beautiful, the manual way works like a charm. Thanks – None – 2014-02-12T16:02:51.757

1

There is also a Firefox addon:

Hide Plugin Notifications:

"Firefox will now show an information bar for every site that uses a hidden plugin, to aid discoverability for users. This addon will let you turn off that infobar, if you know about the icon in the location bar. This is especially helpful if you have Flash marked as click-to-play."

It works like a charme!

Ikem Krueger

Posted 2014-02-12T12:13:20.980

Reputation: 131

0

This comes from the Firefox Click To Run feature whereby plugins can be set to require activation by the user each time they are encountered.

Recent versions of Firefox have marked some plugins Click To Run by default. This is due to a perceived security risk with the plugin. This includes certain versions of Flash and Java.

To change the settings, go to Tools -> Add-ons then select the Plugins tab. Each of your existing plugins will be listed, along with a drop-down menu from which you can select Always Activate if you so wish.

Chenmunka

Posted 2014-02-12T12:13:20.980

Reputation: 3 019

Answers like this are typically who these banners are aimed at... users who don't mind things pushed down their throat – Precastic – 2014-12-01T08:18:35.900

2The settings I use for plugins are intentional. I'd like to keep them deactivated by default but get rid of the message. It is unnecessary and intrusive – None – 2014-02-12T13:12:14.307

0

How do I stop this bar from appearing?

You can use an unofficial style sheet hack. There are also addons that inject those style sheet modifications for you: Hide Plugin Notifications or NoPluginBar.

manuel

Posted 2014-02-12T12:13:20.980

Reputation: 1 958

Does not work since Firefox 40: Mozilla broke this solution including all addons that are based on that. Long term solution: Instead of finding new CSS hacks (that may again stop working in future releases), there should be an option in Firefox itself to disable this plugin notification bar. There exists already a bug report for that: https://bugzilla.mozilla.org/show_bug.cgi?id=942461 Since Firefox' bug tracking system is open for everyone, everyone can come and vote for that issue. That's in my opinion the best advice I can give to you. Any other solution would be only temporary. – manuel – 2015-08-19T10:22:28.220