Kenny2github / scratch-dexter

A Scratch extension to interact with Dexter.
3 stars 0 forks source link

Loading scratch extensions from github repo #1

Closed JamesNewton closed 5 years ago

JamesNewton commented 5 years ago

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.

Kenny2github commented 5 years ago

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.

JamesNewton commented 5 years ago

I've updated my docs to use your link.