5

I normally have Mozilla Firefox ask me before activating shockwave flash on account of a slight bit of instability I notice when I tried to use YouTube. I have it set to "allow and remember" on most websites, the main exception being YouTube. Recently, however, I accidentally clicked "allow and remember" instead of "allow now" on YouTube because I was tired and it had been a long day. Is there any way to remove YouTube from the exceptions list without simply clearing the exceptions list? I'm using Firefox version 29.

2 Answers 2

2

Go to about:config page and change devtools.chrome.enabled to true.

Press Shift+F4 to open Scratchpad and switch Environment to Browser.

Copy and paste the following code

var ytprincipal = Cc["@mozilla.org/scriptsecuritymanager;1"]
  .getService(Ci.nsIScriptSecurityManager)
  .getNoAppCodebasePrincipal(Services.io.newURI("http://www.youtube.com", null, null));
Services.perms.removeFromPrincipal(ytprincipal, "plugin:flash");

Click Run and you 're ready!

10
  • I understand most of that, but where do I find what you call "about:config"? May 12, 2014 at 10:38
  • Type about:config at the address bar and press Enter.
    – paa
    May 12, 2014 at 11:04
  • The solution doesn't work. Not in Firefox 29 at least: Cc is not defined. Yes, I've set devtools.chrome.enabled to true.
    – user324568
    May 17, 2014 at 22:37
  • @Zore switch Environment to Browser
    – paa
    May 18, 2014 at 7:55
  • @macks2008 Did you switch Environment to Browser?
    – paa
    May 18, 2014 at 14:53
3

Go to the site whose plugin settings you want to change:

  • Right click anywhere on the page and select "View Page Info"
  • Go to the "Permissions" tab
  • Select which plugins should allow/block/ask.

You must log in to answer this question.

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