noscript blocking Load the YouTube Video Player On-Demand
noscript blocking Load the YouTube Video Player On-Demand
http://www.labnol.org/internet/light-yo ... eds/27941/
https://labnol.googlecode.com/files/youtube.js
example site where noscript blocks it.. relevant scripts is allowed for the site... but nothing shows...
http://www.ggmania.com/?smsid=far-cry-4 ... iler-38195
noscript disabled completely it works.
what option is missing to get this working?
https://labnol.googlecode.com/files/youtube.js
example site where noscript blocks it.. relevant scripts is allowed for the site... but nothing shows...
http://www.ggmania.com/?smsid=far-cry-4 ... iler-38195
noscript disabled completely it works.
what option is missing to get this working?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
Re: noscript blocking Load the YouTube Video Player On-Deman
All it took for me were:
+youtube.com
+labnol.org
Nothing allowed, black placeholder.
labnol allowed, placeholder with screenshot.
Allow youtube & the clip plays.
+youtube.com
+labnol.org
Nothing allowed, black placeholder.
labnol allowed, placeholder with screenshot.
Allow youtube & the clip plays.
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:32.0) Gecko/20100101 Firefox/32.0 SeaMonkey/2.29.1
Re: noscript blocking Load the YouTube Video Player On-Deman
Well that is odd because I don't see any placeholder... the space is just empty, inspecting the area even shows that
youtube and ytimg are already allowed scripts
labnol is allowed
nothing at all.. what other option?
I managed to once temporary allow all and the image place holder showed and was able to playvideo.. but after resetting noscript and restarting and doing it again it didn't work.
also with noscript disabled when you move the mouse over the image there is a call to https://fbstatic-a.akamaihd.net/rsrc.ph ... MekyHM1.js which is never shown in the noscript menu.
test on newer fx with latest noscript
youtube and ytimg are already allowed scripts
labnol is allowed
nothing at all.. what other option?
I managed to once temporary allow all and the image place holder showed and was able to playvideo.. but after resetting noscript and restarting and doing it again it didn't work.
also with noscript disabled when you move the mouse over the image there is a call to https://fbstatic-a.akamaihd.net/rsrc.ph ... MekyHM1.js which is never shown in the noscript menu.
test on newer fx with latest noscript
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
Re: noscript blocking Load the YouTube Video Player On-Deman
As a test, try a new, clean Profile.
Install NoScript, restart FF, then try your page.
Install NoScript, restart FF, then try your page.
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:32.0) Gecko/20100101 SeaMonkey/2.29.1
Re: noscript blocking Load the YouTube Video Player On-Deman
nope still not.. empty profile.. install noscript restart.. goto site.. temp allow ggmania, labnol.. nothing.. temp allow all.. nothing ..allow scripts globally ..nothing
so something else in noscripts default options is causing it to not work.. what I dunno.. i've checked many settings off/on and tested
so something else in noscripts default options is causing it to not work.. what I dunno.. i've checked many settings off/on and tested
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
Re: noscript blocking Load the YouTube Video Player On-Deman
maybe someone else can check
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
- Giorgio Maone
- Site Admin
- Posts: 9525
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: noscript blocking Load the YouTube Video Player On-Deman
More in general, never include JavaScript files from a code repository: anybody can put any file there, so if NoScript allowed wholesale JavaScript files with the wrong content-type (which usually the repository set to a generic one in order to advise that the file is meant for download, rather than inclusion) it would put user in great danger.Browser Console wrote: --
[08:38:24.867] [NoScript] Blocking cross-site Javascript served from https://labnol.googlecode.com/files/youtube.js with wrong type info text/plain, attachment; filename="youtube.js" and included by http://www.ggmania.com/?smsid=far-cry-4 ... iler-38195
On a side note, is there any reason why you're using Firefox 27, BTW?
@therube: the script working for you worries me a bit: did you turn the noscript.inclusionTypeChecking about:config preference to false, or add googlecode.com as an exception?
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
Re: noscript blocking Load the YouTube Video Player On-Deman
If that sounds scary (it is), a good alternative to running JS straight off a code repository could be to get a revision of the file that you trust, vet it, then set it up as a surrogate for the real thing using a file URL pointing to the downloaded script as the replacement. Then you know when it's changed and how, because you're the one who would have changed it...Giorgio Maone wrote:More in general, never include JavaScript files from a code repository: anybody can put any file there, so if NoScript allowed wholesale JavaScript files with the wrong content-type (which usually the repository set to a generic one in order to advise that the file is meant for download, rather than inclusion) it would put user in great danger.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:37.6) Gecko/25272270 Firefox/37.6 SeaMonkey/8.24.9a1pre
Re: noscript blocking Load the YouTube Video Player On-Deman
I haven't yet migrated over to anything beyond that pile of fucking shit gui chrome copy that was introduced in v30 or whateverOn a side note, is there any reason why you're using Firefox 27, BTW?
to many custom userstyles to port over and I just haven't seen much of anything in the later versions to make me want do update yet maybe by version 60 they might have done something worthwhile
though I have started redoing addons trying to get things back to how I like in v35, but its really ass to look at.. and now those mozilla clowns are tearing up the options and putting that in a fucking tab instead of gui window.
Anyway I'll forward that info about the youtube script to the ggmania dev he can sort it out, I shoudl have checked the error console.. no idea it was saying that.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
Re: noscript blocking Load the YouTube Video Player On-Deman
i have actually put this external youtube script into greasemonkey script now, it works and I don't need labnol allowed, not sure if the site dev will fix it, so many web developers just dump external scripts... tbh i don't mind its often one less **** javascript that I don't need to allow in most cases.. the noscript menu list of external scripts gets **** crazy big on some sites. Feel dirty going on such sites without noscriptbarbaz wrote: If that sounds scary (it is), a good alternative to running JS straight off a code repository could be to get a revision of the file that you trust, vet it, then set it up as a for the real thing using a file URL pointing to the downloaded script as the replacement. Then you know when it's changed and how, because you're the one who would have changed it...
Otherwise they start embedding javascripts into the main domain, and then you allow the main domain all these **** rat scripts start running.
Need a per tab firewall next just to vet javascript connections, ooh you want to send some analytic data **** to google.. **** denied.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
Re: noscript blocking Load the YouTube Video Player On-Deman
That was introduced in Firefox 29. If that's the main reason why you don't upgrade your Fx to the latest version then you have no reason not to use Firefox 28 or latest Firefox 24 ESR.Reva wrote:I haven't yet migrated over to anything beyond that pile of f***ing s*** gui chrome copy that was introduced inOn a side note, is there any reason why you're using Firefox 27, BTW?
Yes, that will *sometimes* work, but the timing of when a Greasemonkey script runs isn't controlled by when the "actual" script "should" have run, so if it runs too early or too late things could be messed up. Apparently it's not an issue in this case, but it could be on other sites.Reva wrote:i have actually put this external youtube script into greasemonkey script now, it works and I don't need labnol allowed
+1, and you've already got a tool that can be used as such a firewall: ABEReva wrote:tbh i don't mind its often one less s****ing javascript that I don't need to allow in most cases.. the noscript menu list of external scripts gets f***ing crazy big on some sites. Feel dirty going on such sites without noscript
Otherwise they start embedding javascripts into the main domain, and then you allow the main domain all these f***ing rat scripts start running.
Need a per tab firewall next just to vet javascript connections, ooh you want to send some analytic data crap to google.. f**king denied.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:37.6) Gecko/25272270 Firefox/37.6 SeaMonkey/8.24.9a1pre
Re: noscript blocking Load the YouTube Video Player On-Deman
I'm doing nothing out of the ordinary.Giorgio Maone wrote: @therube: the script working for you worries me a bit: did you turn the noscript.inclusionTypeChecking about:config preference to false, or add googlecode.com as an exception?
New Profile. Install NoScript.
I load the page & have black placeholders.
I allow labnol.org & the placeholders load & the clip will play.
(Prior to allowing labnol.org, youtube, ytimg, & google did not exist, but after they did.)

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:32.0) Gecko/20100101 Firefox/32.0 SeaMonkey/2.29.1
Re: noscript blocking Load the YouTube Video Player On-Deman
LOL. It just dawned on me, LOL.
OK, the "clip" in Gameguru will not load & does generate the cross-stie Javascript warning.
viewtopic.php?f=19&t=20117
OK, the "clip" in Gameguru will not load & does generate the cross-stie Javascript warning.
viewtopic.php?f=19&t=20117
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:32.0) Gecko/20100101 Firefox/32.0 SeaMonkey/2.29.1
Re: noscript blocking Load the YouTube Video Player On-Deman
Did you happen to dawn upon a solution to this problem, by chance?therube wrote:LOL. It just dawned on me, LOL.
OK, the "clip" in Gameguru will not load & does generate the cross-stie Javascript warning.
viewtopic.php?f=19&t=20117
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0
Re: noscript blocking Load the YouTube Video Player On-Deman
First you need to download the script (https://labnol.googlecode.com/files/youtube.js) to your hard drive.hejyhej wrote:Did you happen to dawn upon a solution to this problem, by chance?therube wrote:LOL. It just dawned on me, LOL.
OK, the "clip" in Gameguru will not load & does generate the cross-stie Javascript warning.
viewtopic.php?f=19&t=20117
I've placed it in the folder C:\Youtubejs_surrogate
Then you need to go to about:config page and add two keys
1st key is
noscript.surrogate.ytjs.sources
with the value
https://labnol.googlecode.com/files/youtube.js
2nd key is
noscript.surrogate.ytjs.replacement
with the value
file:///C:/Youtubejs_surrogate/youtube.js
Thats it!
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0