Possible to forbid <AUDIO> but not <VIDEO>?

Ask for help about NoScript, no registration needed to post
John Smith

Possible to forbid <AUDIO> but not <VIDEO>?

Post by John Smith »

I use another extension (Flashblock) to achieve click-to-play for video (Flash, Silverlight, and HTML5) since I like its click-to-play functionality better than NoScript's. However, it can't handle HTML5 audio, so I have to use NoScript's "Forbid <AUDIO> / <VIDEO>" option (with "apply to whitelisted sites" and "show placeholder icon") in order to block audio. This results in HTML5 video being blocked by two layers of click-to-play (Flashblock and NoScript). I would like to be able to have NoScript block HTML5 audio but not HTML5 video. Is this currently possible or is there a chance it may be added in the future>
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
barbaz
Senior Member
Posts: 11163
Joined: Sat Aug 03, 2013 5:45 pm

Re: Possible to forbid <AUDIO> but not <VIDEO>?

Post by barbaz »

about:config -> noscript.allowedMimeRegExp
add to that pref, the MIME type(s) of the videos you want *not* to forbid
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Possible to forbid <AUDIO> but not <VIDEO>?

Post by Thrawn »

Bear in mind that FlashBlock is not reliable for security purposes - only for preventing annoyances.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0
Post Reply