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
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!
-
I understand most of that, but where do I find what you call "about:config"? May 12, 2014 at 10:38
-
-
The solution doesn't work. Not in Firefox 29 at least: Cc is not defined. Yes, I've set devtools.chrome.enabled to true.– user324568May 17, 2014 at 22:37
-
-
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.