Blocking Html5 videos

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

Blocking Html5 videos

Post by user_11664631 »

I know Firefox has a click to play plugin feature for Flash. However, video streaming and advertising sites are increasing adoptation of HTML5 to serve videos. It is annoying to hear those ads because I tend to open several tabs before start reading. Can no script be configured to block HTML5 videos unless I whitelist the site? It would be even better if it is click to play so I can allow some videos to play while blocking others on the same site.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0
barbaz
Senior Member
Posts: 11143
Joined: Sat Aug 03, 2013 5:45 pm

Re: Blocking Html5 videos

Post by barbaz »

user_11664631 wrote:Can no script be configured to block HTML5 videos unless I whitelist the site? It would be even better if it is click to play so I can allow some videos to play while blocking others on the same site.
That is the default configuration.

If you are intending to have scripts globally allowed or for videos not to be automatically allowed with Temp-Allowing a site, then you'll need to check
NoScript Options > Embeddings > Apply these restrictions to whitelisted sites too
and instead use
about:config -> noscript.allowedMimeRegExp
for whitelisting sites to play video.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; NetBSD i386; rv:28.0) Gecko/20100101 Firefox/28.0 SeaMonkey/2.25
user_11664631

Re: Blocking Html5 videos

Post by user_11664631 »

I see it now. I have not enabled "apply these restrictions to whitelisted sites too". I think that is a good idea. Thank you for the explanation.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0
Post Reply