Discuss Scratch

LiFaytheGoblin
Forum Moderator
1000+ posts

My extension won't load - why?

Hello! I have a problem. I successfully made an extension for ScratchX (it doesn't do much yet). I tested it by pasting the raw script in the console and it works. I tried to host it on GitHub and now it is here: https://github.com/LiFaytheGoblin/ScratchX-Extensions/blob/gh-pages/CatX.js

However if I go on
http://scratchx.org/?url=https://lifaythegoblin.github.io/ScratchX-Extensions/CatX.js#scratch
, my extension won't load (no error message or anything, my new block just doesn't appear anywhere). Is the link wrong? Or is it something else?


(My browser / operating system: Windows 7, Firefox 41.0, Flash 19.0 (release 0))

Edit: I pasted the wrong URL above. I changed it. Still not working

Edit2: The URL
http://scratchx.org/?url=https://cdn.rawgit.com/LiFaytheGoblin/ScratchX-Extensions/gh-pages/CatX.js
is working! Thanks, Thepuzzlegame!

Last edited by LiFaytheGoblin (Nov. 7, 2015 19:57:58)

The_Grits
Scratcher
1000+ posts

My extension won't load - why?

LiFaytheGoblin wrote:

Hello! I have a problem. I successfully made an extension for ScratchX (it doesn't do much yet). I tested it by pasting the raw script in the console and it works. I tried to host it on GitHub and now it is here: https://github.com/LiFaytheGoblin/ScratchX-Extensions/blob/gh-pages/CatX.js

However if I go on
http://scratchx.org/?url=http://lifaythegoblin.github.io/extensions/CatX.js#scratch
, my extension won't load (no error message or anything, my new block just doesn't appear anywhere). Is the link wrong? Or is it something else?


(My browser / operating system: Windows 7, Firefox 41.0, Flash 19.0 (release 0))
I'll take a look.
The_Grits
Scratcher
1000+ posts

My extension won't load - why?

Looks like you need to host it on a Github site. So you could either make a new page on your existing Github site or make a new site.
LiFaytheGoblin
Forum Moderator
1000+ posts

My extension won't load - why?

The_Grits wrote:

Looks like you need to host it on a Github site. So you could either make a new page on your existing Github site or make a new site.
Well, that's what I tried before, but that didn't work either. So I checked out other extensions and they were hosted in seperate repositories on gh-pages branches and that worked. Other extensions (I tested Rumanti's) hosted directly in the github pages repository wouldn't work for me…

Thepuzzlegame wrote:

Your url should be http://lifaythegoblin.github.io/ScratchX-Extensions/CatX.js#scratch.
http://lifaythegoblin.github.io/extensions/CatX.js#scratch Just gives a 404 error.
Does that work for you? Because it doesn't work for me…

Last edited by LiFaytheGoblin (Nov. 7, 2015 19:08:24)

Thepuzzlegame
Scratcher
1000+ posts

My extension won't load - why?

LiFaytheGoblin wrote:

Thepuzzlegame wrote:

Your url should be http://lifaythegoblin.github.io/ScratchX-Extensions/CatX.js#scratch.
http://lifaythegoblin.github.io/extensions/CatX.js#scratch Just gives a 404 error.
Does that work for you? Because it doesn't work for me…
Weird, I expected that to work. (should have tested it) this should work though.
LiFaytheGoblin
Forum Moderator
1000+ posts

My extension won't load - why?

Thepuzzlegame wrote:

LiFaytheGoblin wrote:

Thepuzzlegame wrote:

Your url should be http://lifaythegoblin.github.io/ScratchX-Extensions/CatX.js#scratch.
http://lifaythegoblin.github.io/extensions/CatX.js#scratch Just gives a 404 error.
Does that work for you? Because it doesn't work for me…
Weird, I expected that to work. (should have tested it) this should work though.
It does! Thank you so much!

Powered by DjangoBB