Page 1 of 1

How to permanently allow <audio> only on a given site ?

Posted: Sun Jun 08, 2014 9:03 am
by Eardrum
Hi,

I'm yet to figure this out, maybe someone knows ? Here are the requirements for what I'm trying to do:
- I would like to permanently allow <audio> on a permanently whitelisted site
- I don't want to allow <audio> on all whitelisted sites, so both "Forbid <audio>" and "Apply restrictions to whitelisted sites" boxes must remain checked.


I was thinking maybe there is some secret syntax that I can add to the whitelist, such as:

Code: Select all

example.com
example.com@audio
Where first line allows JavaScript, and second one would allow <audio>.

Is there such a syntax ? If not, is there another way to meet my requirements ? Thanks!

Re: How to permanently allow <audio> only on a given site ?

Posted: Sun Jun 08, 2014 4:28 pm
by barbaz

Re: How to permanently allow <audio> only on a given site ?

Posted: Sun Jun 08, 2014 5:50 pm
by Eardrum
Awesome it worked perfectly, thanks !

Although I couldn't regroup all audio mimetypes under au AUDIO definition like the FAQ shows with FONT and FRAME.

Re: How to permanently allow <audio> only on a given site ?

Posted: Sun Jun 08, 2014 10:53 pm
by Eardrum
May I also suggest that such rules could be accessible from the whitelist UI ? Both for adding/removing and just regular display.
Maybe as an about:config option turned off by default if you're afraid to scare users because of the slightly more complicated syntax.

Though I guess the reason it hasn't been done yet is more about development time VS usefulness, which is always a fair argument.