Page 1 of 1

youtube html5 video isnt blocked

Posted: Wed Jun 22, 2016 10:29 am
by snicky
Hi,
youtube html5 video isnt blocked
I have 2.9.0.11 and firefox 45.2.0
scripts globally allowed
"Forbid <audio>/<video>"
"Apply these restrictions to whitelisted sites too"
"Show placeholder icon"
on sites that only use flash noscript puts a placeholder icon
it did the same on youtube before they turned on html5 ,
but now noscript doesn't block html5 video
and the html5 videos autoplay by default (unwanted)

There is a firefox addon "stop-tube" (or "Stop Tube HTML5") maybe you can borrow some code
but its buggy, it only blocks half the time
if you open a youtube video in background tab it lets video play
it never blocks videos on a channel or user profile page

Thanks

Re: youtube html5 video isnt blocked

Posted: Wed Jun 22, 2016 1:54 pm
by therube
Not sure if NoScript is going to do it?

Might need to set the about:config Pref, media.autoplay.enabled, to 'false'?

Re: youtube html5 video isnt blocked

Posted: Wed Jun 22, 2016 4:08 pm
by barbaz
Youtube's HTML5 video is generated by MSE / XMLHttpRequest, and NoScript's Forbid AUDIO/VIDEO is known not to stop all methods of playing audio/video: viewtopic.php?f=7&t=21405
So, it's not necessarily expected to work.

Bottom line is, if you trust a site to run active content, it can do whatever it wants within the scope of what it's capable of.

Re: youtube html5 video isnt blocked

Posted: Wed Jun 22, 2016 10:42 pm
by snicky
Thanks everybody
therube wrote:Not sure if NoScript is going to do it?
Might need to set the about:config Pref, media.autoplay.enabled, to 'false'?

Thats genius, I looked so hard but didn't discover that on my own
That stops the annoying noises,
but it appears the video download still gets started
so its a half measure
any idea about stopping the download as well?

Re: youtube html5 video isnt blocked

Posted: Wed Jun 22, 2016 10:52 pm
by barbaz
Try disallowing script for googlevideo.com and selecting NoScript Options > Appearance > Full Domains ?

If that doesn't do what you're looking for, then NoScript won't help here.

Re: youtube html5 video isnt blocked

Posted: Thu Jun 23, 2016 12:45 am
by snicky
barbaz wrote:Try disallowing script for googlevideo.com and selecting NoScript Options > Appearance > Full Domains ?

If that doesn't do what you're looking for, then NoScript won't help here.
How to disallow? I don't see a "forbid" option
update: oh mark as untrused, ok, yeah, good thinking, that does the trick,
thank you very much

FWIW, its not as bad as I thought, only 4min of video gets downloaded :)

Re: youtube html5 video isnt blocked

Posted: Thu Jun 23, 2016 1:58 am
by barbaz
snicky wrote:How to disallow? I don't see a "forbid" option
update: oh mark as untrused, ok, yeah, good thinking, that does the trick,
thank you very much
You're welcome! Image

(To note, not seeing a "Forbid" option, but seeing a Mark as Untrusted, means you have Scripts Globally Allowed or the like.)