Kenny2github / scratch-dexter

A Scratch extension to interact with Dexter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loading scratch extensions from github repo

JamesNewton opened this issue · comments

It would be nice to go to
http://scratchx.org
click "more blocks" then "Load experimental extension" and be able to load the extension from this URL:
https://raw.githubusercontent.com/Kenny2github/scratch-dexter/master/ext.js
or to do that in one step with
http://scratchx.org?url=https://raw.githubusercontent.com/Kenny2github/scratch-dexter/master/ext.js
but when you try that, nothing happens. If you start the Chrome debug tools (menu, more tools, developer tools) you see an error message:
Refused to execute script from 'https://raw.githubusercontent.com/Kenny2github/scratch-dexter/master/ext.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

See also:

Suggestion: Follow the directions in the link above to make it very easy for users to load scratchx with the url to the extension and talk to their dexter.

I have now deployed this repository to GitHub pages. The URL https://scratchx.org/?url=https://kenny2github.github.io/scratch-dexter/ext.js#scratch (on Chrome, click to enable Flash) successfully loads the extension.

I've updated my docs to use your link.