I’m attempting to make a Glitch “extension”. This idea popped out after seeing Lameplit’s extensions. I browsed some, and I thought my idea would be a .CSV viewer. Now, this isn’t a suggestion to turn .CSV files into something like the graphical .ENV viewer embedded in the editor itself, because my hard work would all go to code-hell. And I’m also not the 18969th wimp to ask for an official extension API for Glitch, this isn’t a suggestion.
But why am I bringing this up? You see, I planned COOLcsv (uncool name, I know (get it?)) to work as a simple bookmarklet that injects the required JS code. I thought simply importing it would work, it didn’t. Then after a “few” tries I realized the Github API is allowed to request through Glitch (likely the Glitch-Github support), so I created a private Github gist for the code of COOLcsv, requested it, worked fine, until I realized Glitch blocks any kind of injection possible, whether it’d be though an eval/new Function, <script> inlines and tags with a src to a data URL, so on.
Though yes, Github API can give us a raw link for my beautiful script of the gist (I tested the extension more than I tested the injecting bookmarklet itself, how smart /sarc), but requests to rawgithubcontent.com are blocked either, because, of course, don’t let unnecessary URLs be requested or else abominations like COOLcsv are easy to inject or manipulate the editor itself.
I also tried removing the <meta> tags which correspond to the CSP, but some of the CSP was still left, leaving me absolutely insane, yet again with my stupid code creations that never should and will work.
Looks like this is a dead end, cause I don’t think anyone would contact me for the sole purpose of telling how to hack into Glitch’s editor, so I don’t ask for any help, rather, I’m hoping I discover some sort of hole in Glitch’s highly inspected CSP string or something like that, but again, I’d be banned for inserting ugly Rix code onto Glitch editor (trust me, my code style is ugly).