youtube html5 video isnt blocked

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

youtube html5 video isnt blocked

Post 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
Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101 Firefox/45.0
User avatar
therube
Ambassador
Posts: 7979
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: youtube html5 video isnt blocked

Post by therube »

Not sure if NoScript is going to do it?

Might need to set the about:config Pref, media.autoplay.enabled, to 'false'?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:43.0) Gecko/20100101 SeaMonkey/2.40
barbaz
Senior Member
Posts: 11141
Joined: Sat Aug 03, 2013 5:45 pm

Re: youtube html5 video isnt blocked

Post 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.
*Always* check the changelogs BEFORE updating that important software!
-
snicky

Re: youtube html5 video isnt blocked

Post 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?
Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101 Firefox/45.0
barbaz
Senior Member
Posts: 11141
Joined: Sat Aug 03, 2013 5:45 pm

Re: youtube html5 video isnt blocked

Post 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.
*Always* check the changelogs BEFORE updating that important software!
-
snicky

Re: youtube html5 video isnt blocked

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

Re: youtube html5 video isnt blocked

Post 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.)
*Always* check the changelogs BEFORE updating that important software!
-
Post Reply