raw.github.com

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

raw.github.com

Post by aeos »

I have the file foo.js hosted on github, accessible via two urls: http://aeosynth.github.com/foo.js, and https://raw.github.com/aeosynth/aeosynt ... ter/foo.js. Github is unblocked, and if I add a script element sourcing the first url, the script runs fine, displaying an alert (bar). If I source the second url, the script does not run. In order to make the second url work, I have to allow scripts globally, and in NoScript Options > Embeddings, I have to disable both `Forbid other plugins` and `Block every object coming from a site marked as untrusted`.

Yes, I am aware that I am abusing github as a cdn.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: raw.github.com

Post by dhouwn »

aeos wrote:Yes, I am aware that I am abusing github as a cdn.
Good, then what's the issue?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0
Guest

Re: raw.github.com

Post by Guest »

dhouwn wrote:
aeos wrote:Yes, I am aware that I am abusing github as a cdn.
Good, then what's the issue?
A++, would read again.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.53 Safari/536.5
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: raw.github.com

Post by Thrawn »

aeos wrote:Yes, I am aware that I am abusing github as a cdn.
As Giorgio.has explained before, github is correctly telling your browser that this file should be downloaded as an attachment, NOT executed inline. NoScript is just honoring that. You really shouldn't do what you're doing, for the same reason that you shouldn't use a pond at the local park as a source of drinking water, but you can look up the workaround if you insist. Search for liberoquotidiano.
======
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 (Linux; U; Android 2.2.1; en-gb; GT-S5570 Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3377
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: raw.github.com

Post by GµårÐïåñ »

Search the site and you will see the issue you are experiencing with the Github has been extensively discussed before and the reasons as well, people have taken too much time already explaining it to you. So do your due diligence and don't be lazy and try to can the attitude.

http://forums.informaction.com/viewtopi ... 569#p33541
http://forums.informaction.com/viewtopi ... 456#p33456
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20100101 Firefox/12.0
aeos

Re: raw.github.com

Post by aeos »

Javascripts in `gh-page`s get executed if github.com is allowed, so I modified my build script to use that branch. This is a superior workaround to messing with `about:config`, as it requires no user interaction beyond allowing the site.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.54 Safari/536.5
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3377
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: raw.github.com

Post by GµårÐïåñ »

If that works for you, great and thanks for sharing. To each their own.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0
Post Reply