I've searched the forum a bit, but couldn't find anything related. Perhaps I was using the wrong keywords?
Anyway, I'm having a strange issue on youtube and other websites that link youtube videos. I don't have Flash installed on my Firefox, so youtube brings up the HTML5 video instead. I've configured NoScript Embeddings to apply restrictions to whitelisted sites, and I blocked elements like <video>. The youtube.com and ytimg.com are both allowed, but basically I also did "Temporarily allow all this page" during the test. The video element gets blocked properly on youtube as I can see the yellowish placeholder with an orange film icon in the center and the noscript icon on the top left.
The problem is when I click the element to unblock/allow it, the entire page will refresh instead, and the element will once again be blocked.
Youtube HTML5 video causes page refresh
Youtube HTML5 video causes page refresh
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
- Giorgio Maone
- Site Admin
- Posts: 9546
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Youtube HTML5 video causes page refresh
Test URL?
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
Re: Youtube HTML5 video causes page refresh
Basically any youtube video will do. Like this one: https://www.youtube.com/watch?v=9bZkp7q19f0
Videos on sites that link to youtube also don't work: https://robertsspaceindustries.com/comm ... Episode-30
If I go to the Noscript menu => Blocked Objects => Temporarily allow video/ogg@https://something.googlevideo.com (this is the last option at the bottom of the list) then it will work normally. You think this is caused by a clash with another addon?
EDIT: Nope. I've just created a new FF profile, installed only NoScript, and the same thing happens.
Videos on sites that link to youtube also don't work: https://robertsspaceindustries.com/comm ... Episode-30
If I go to the Noscript menu => Blocked Objects => Temporarily allow video/ogg@https://something.googlevideo.com (this is the last option at the bottom of the list) then it will work normally. You think this is caused by a clash with another addon?
EDIT: Nope. I've just created a new FF profile, installed only NoScript, and the same thing happens.
Its time to kick ass and chew bubble gum, and Im all out of gum.
Re: Youtube HTML5 video causes page refresh
Already discussed in this thread, viewtopic.php?f=7&t=19903.
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 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26.1
Re: Youtube HTML5 video causes page refresh
Thank you, that explains it.
So it's a website problem then. Do you think something like this can be fixed with a surrogate script? Or am I'm just better off adding the googlevideo.com to the whitelist? I can't find any menu options to permanently allow certain embedding on a given website. Am I missing something or do I have to manually edit the noscript.allowedMimeRegExp string?
So it's a website problem then. Do you think something like this can be fixed with a surrogate script? Or am I'm just better off adding the googlevideo.com to the whitelist? I can't find any menu options to permanently allow certain embedding on a given website. Am I missing something or do I have to manually edit the noscript.allowedMimeRegExp string?
Its time to kick ass and chew bubble gum, and Im all out of gum.
Re: Youtube HTML5 video causes page refresh
No, you can't fix it with a surrogate script, and it sounds like you're not missing anything.Lurion wrote:Thank you, that explains it.
So it's a website problem then. Do you think something like this can be fixed with a surrogate script? Or am I'm just better off adding the googlevideo.com to the whitelist? I can't find any menu options to permanently allow certain embedding on a given website. Am I missing something or do I have to manually edit the noscript.allowedMimeRegExp string?
Your best option is allowing googlevideo.com because its JS actually seems needed if you enable Media Source Extensions. If you Apply Embeddings restrictions to whitelisted sites too, then you would need to edit allowedMimeRegExp manually (there is no GUI for it) as well.
Interesting browser / OS you've got there BTW
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:34.0) Gecko/20100101 Firefox/34.0 SeaMonkey/2.30a1
Re: Youtube HTML5 video causes page refresh
Thank you for confirming it.
I added the video/ogg@https?://.*\.googlevideo.com exception to the noscript.allowedMimeRegExp, and it seems to work fine. The videos start playing automatically, but I can live with this for now. And yes, I apply restrictions to embeddings on whitelisted pages because I have to allow javascript on certain websites, but I do not wish to permit the embeddings to load. Sounds like a whitelist for embeddings is an important option IMO. May I ask why was such an option not included in the noscript gui/menus and is instead hidden in the about:config?
Regards!
I added the video/ogg@https?://.*\.googlevideo.com exception to the noscript.allowedMimeRegExp, and it seems to work fine. The videos start playing automatically, but I can live with this for now. And yes, I apply restrictions to embeddings on whitelisted pages because I have to allow javascript on certain websites, but I do not wish to permit the embeddings to load. Sounds like a whitelist for embeddings is an important option IMO. May I ask why was such an option not included in the noscript gui/menus and is instead hidden in the about:config?
Regards!
Its time to kick ass and chew bubble gum, and Im all out of gum.
Re: Youtube HTML5 video causes page refresh
I would suggest that reason #1 is because it's probably not a good idea for anyone to try editing it without coming here and reading up on it first; and #2 is because Giorgio's development time is limited.Lurion wrote:May I ask why was such an option not included in the noscript gui/menus and is instead hidden in the about:config?
======
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.
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 i686; rv:31.0) Gecko/20100101 Firefox/31.0