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.
Asked
Active
Viewed 1,417 times
2 Answers
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.
Silveri
- 2,817
- 4
- 17
- 21
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!
paa
- 832
- 6
- 8
-
I understand most of that, but where do I find what you call "about:config"? – Twisted Code May 12 '14 at 10:38
-
Type `about:config` at the address bar and press Enter. – paa May 12 '14 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. – May 17 '14 at 22:37
-
@Zore switch Environment to Browser – paa May 18 '14 at 07:55
-
@macks2008 Did you switch Environment to Browser? – paa May 18 '14 at 14:53
-
@paa How do I do that? – Twisted Code May 18 '14 at 15:06
-
The menu bar of Scratchpad has a drop-down menu named Environment – paa May 18 '14 at 15:07
-
@paa Wait, I just checked your answer again. Is it somewhere in Scratchpad's menus? – Twisted Code May 18 '14 at 15:08
-
Thanks! It worked. I saved that JavaScript for future use should I make the same mistake again. – Twisted Code May 18 '14 at 15:37
-
I would rep+ this answer, but I only have 11 reputation on this website. Guess I better go answer some questions :-) – Twisted Code May 18 '14 at 15:47