Page 1 of 2

NoScript prevents video player from loading on a site

Posted: Wed Jul 09, 2014 12:51 pm
by CrazyDog10
Windows 7 x64
Firefox 31b8
NoScript 2.6.8.33

http://www1.watchop.com/watch/one-piece-episode-634-english-subbed/

Steps to reproduce:
1. Start with a fresh profile.
2. Install NoScript and restart Firefox.
3. Once Firefox has restarted, select the 'Allow Scripts Globally' option.
4. Load the URL above.

What happens:
Notice that there is a big black block in the middle of the screen where the video player should be since it's not loading.

What should happen:
There should be a video player in the black box.

To prove that the problem is NoScript's, now disable NoScript and restart Firefox and to load the same page again. The video player now loads properly in the middle of the screen. It seems that this website recently changed the video player they use, as it was working fine a few days ago just allowing a few site scripts to get it to load. Unfortunately, the new player seems to trigger a bug in NoScript preventing it from loading.

Re: NoScript prevents video player from loading on a site

Posted: Wed Jul 09, 2014 1:50 pm
by Giorgio Maone
For some reason that escapes my understanding, they're serving JavaScript files with a .jsx file extension and the wrong content-type header (application/octet-stream), something that NoScript blocks to prevent generic user-managed file repositories to be used as JavaScript malware repositories:
NoScript wrote: [NoScript] Blocking cross-site Javascript served from http://cdn.directvid.com/fun3.jsx with wrong type info application/octet-stream and included by http://online.watchop.com/s/flownew_plu ... 2805543465
In this case, I think it's safe to add "cdn.directvid.com/*.jsx" to the noscript.inclusionTypeChecking.exceptions about:config preference, whose value becomes

Code: Select all

https://scache.vzw.com/ http://cache.vzw.com .sony-europe.com .amazonaws.com lesscss.googlecode.com/files/ .hp-ww.com .yandex.st cdn.directvid.com/*.jsx

Re: NoScript prevents video player from loading on a site

Posted: Thu Jul 10, 2014 3:47 am
by Thrawn

Re: NoScript prevents video player from loading on a site

Posted: Fri Jul 11, 2014 8:26 pm
by version X
I'm having a similar problem with video playing on another site. I think something was introduced with the last Noscript update that is causing this as the website ( http://www.naruget.net/watch/1207-narut ... isode-367/ ), which has been working fine until then. I know it is Noscript because if I disable the extension the video works fine. Noscript is set to global allow for site. Previous time I visited the site was last week Thursday with no issues, but today can't play videos unless Noscript is disabled. Any suggestions?

Re: NoScript prevents video player from loading on a site

Posted: Fri Jul 11, 2014 8:48 pm
by Giorgio Maone
version X wrote: I think something was introduced with the last Noscript update
Not at all, it's a royal f*up introduced by the website.
version X wrote:Any suggestions?
Just two comments above in this thread.

Re: NoScript prevents video player from loading on a site

Posted: Sat Jul 12, 2014 8:04 pm
by CrazyDog10
Thanks for the help, Giorgio. That fix worked perfectly for the site I was having the problems with. :mrgreen:

Re: NoScript prevents video player from loading on a site

Posted: Sun Jul 13, 2014 2:59 pm
by Karl Napf
Hello

I followed your post but it does not work.
Instead of playing a video I just see a black square.
Nothing works. very disappointing.

also links do not work with noscript anymore.

so I might have to look for an alternative :(

Re: NoScript prevents video player from loading on a site

Posted: Sun Jul 13, 2014 8:15 pm
by Giorgio Maone
Karl Napf wrote: I followed your post but it does not work.
Instead of playing a video I just see a black square.
Nothing works. very disappointing.

also links do not work with noscript anymore.
You don't even mention on which website and what script sources you've tried to allow to make it work...

Re: NoScript prevents video player from loading on a site

Posted: Thu Jul 24, 2014 8:48 am
by Guest
Giorgio Maone wrote:
Karl Napf wrote: I followed your post but it does not work.
Instead of playing a video I just see a black square.
Nothing works. very disappointing.

also links do not work with noscript anymore.
You don't even mention on which website and what script sources you've tried to allow to make it work...
I'm guessing that either he messed up somewhere with executing the workaround or he's got something else mixed in with his issue. Both of the mentioned websites are "birds of feather" and that one exception seems to work for all of them.

Re: NoScript prevents video player from loading on a site

Posted: Fri Jul 25, 2014 1:23 pm
by Guest
What I'd like to know is why NoScript does things like this even when you've told it the site is trusted. It's very annoying.

Re: NoScript prevents video player from loading on a site

Posted: Fri Jul 25, 2014 6:29 pm
by Giorgio Maone
Guest wrote:What I'd like to know is why NoScript does things like this even when you've told it the site is trusted. It's very annoying.
It's exactly because you've told it the site is trusted and allowed to run JavaScript: since the JavaScript file in question is not served with the correct type, and therefore it's been potentially planted into the website by a 3rd party, NoScript blocks it because it could be not actually what you've chosen to trust.

Re: NoScript prevents video player from loading on a site

Posted: Mon Jul 28, 2014 11:27 am
by Thrawn
Sometimes, trusting a site that is badly written can be as bad as trusting a site that's actually malicious...

Re: NoScript prevents video player from loading on a site

Posted: Sat Aug 09, 2014 10:31 pm
by Nissemus
Could there not be a menu option to just turn NoScript off completely for a specific site? Like "Ignore this site"?

Re: NoScript prevents video player from loading on a site

Posted: Sat Aug 09, 2014 10:51 pm
by barbaz
You shouldn't trust any website that much ;)

Re: NoScript prevents video player from loading on a site

Posted: Mon Aug 11, 2014 3:50 am
by Thrawn
What would be nice is this or this.