You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 30, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on May 30, 2021. It is now read-only.
Scratchy Stuff Extension Library doesn't save extensions #7
When you put an extension in your project from the Scratchy Stuff extension library, if you save and reload the page, the extension isn't already loaded. Maybe keep a dict of which projects use which extensions and automatically load the extensions when the user goes back to that project?
I had this problem too while fooling with extensions. Projects don't seem to put extension urls into their json like they do for djdolphin... Idk how to fix this
Wow, clever! I've got a couple questions of my own:
How do you add css to the MSU settings? I've got a css file ready but how can I apply it? 🍪
Sorry. 😊
Add CSS to the MSU settings? What do you mean? If you want additional CSS to apply to Scratch, right now the only way to do that is 1) (I recommend this) Add your CSS to a file in resources/<mycssfile>.css, then add // @resource customcssfile resources/<mycssfile>.css to the header on msu-base.user.js, and finally in ScratchUserscript.init(), add the line GM_addStyle(GM_getResourceText("customcssfile")) 2) (More hacky) Add your CSS to `resources/settings.css 3) (Most hacky) Paste your code into a string in msu-base.user.js and call GM_addStyle on that directly
In any case, please don't commit as it would mess up the repo. However, a good idea might be a MSU part where you can add custom CSS styles.
Sorry, I didn't see your commits. So how should we add this? As a new part or as new CSS in the existing theme part?
@DavidKT Extensions are already saved with projects. They just aren't loaded again unless they're made by someone in the extension developer group and the project is unshared. That could be worked around by grabbing the JSON using a CORS proxy and loading everything in the savedExtensions section.
Activity
MegaApuTurkUltra commentedon Oct 17, 2014
I had this problem too while fooling with extensions. Projects don't seem to put extension urls into their json like they do for djdolphin... Idk how to fix this
MegaApuTurkUltra commentedon Nov 1, 2014
Any help? Djdolphin?
djdolphin commentedon Nov 10, 2014
I'll have this implemented eventually (hopefully soon).
TheInitializer commentedon Nov 19, 2014
So I looked in the JSON of a project with the PicoBoard extension, and I found this code:
So all we need to do to save an extension is modify the JSON in that way! So where is the project file kept on the server?
bates64 commentedon Nov 19, 2014
Wow, clever! I've got a couple questions of my own:
How do you add css to the MSU settings? I've got a css file ready but how can I apply it? 🍪
Sorry. 😊
MegaApuTurkUltra commentedon Nov 19, 2014
Add CSS to the MSU settings? What do you mean?If you want additional CSS to apply to Scratch, right now the only way to do that is1) (I recommend this) Add your CSS to a file inresources/<mycssfile>.css, then add// @resource customcssfile resources/<mycssfile>.cssto the header on msu-base.user.js, and finally in ScratchUserscript.init(), add the lineGM_addStyle(GM_getResourceText("customcssfile"))2) (More hacky) Add your CSS to `resources/settings.css3) (Most hacky) Paste your code into a string in msu-base.user.js and call GM_addStyle on that directlyIn any case, please don't commit as it would mess up the repo.However, a good idea might be a MSU part where you can add custom CSS styles.Sorry, I didn't see your commits. So how should we add this? As a new part or as new CSS in the existing theme part?
bates64 commentedon Nov 20, 2014
As new css in the theme part?
djdolphin commentedon Nov 20, 2014
@DavidKT Extensions are already saved with projects. They just aren't loaded again unless they're made by someone in the extension developer group and the project is unshared. That could be worked around by grabbing the JSON using a CORS proxy and loading everything in the savedExtensions section.
bates64 commentedon Nov 20, 2014
@djdolphin It would be really cool, though.