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

Ask for help about NoScript, no registration needed to post
Eardrum

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

Post 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!
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
barbaz
Senior Member
Posts: 11163
Joined: Sat Aug 03, 2013 5:45 pm

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

Post by barbaz »

*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:30.0) Gecko/20100101 Firefox/30.0 SeaMonkey/2.27a2
Eardrum

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

Post 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.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
Eardrum

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

Post 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.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
Post Reply