javascriptchrome-extension-manifest-v3

Is there a way to run JavaScript from a GitHub repository in an MV3 extension?


I've been trying to develop an extension called Mod Tamer (https://github.com/KittenCoder/mod-tamer) for Taming.IO. It is a mod store that partially relies on the downloading of JavaScript from the repository. I've been wanting to make it work on the latest versions of Chrome so I have to do it in MV3 but according to the developer docs, you can't run "remote JavaScript" from an extension. Is there any way I could get around this? Like, could I somehow have the script execute the other script or should I take a userscript installer (TamperMonkey) sort of approach or just add the new mod to the source code and update each time? (I haven't actually done the extension yet.)

I haven't actually tried anything but according to everything I've seen on the web, you can't do it.


Solution

  • but according to the developer docs, you can't run "remote JavaScript" from an extension.

    I don't know where you read that. You can import or import() the remote script or fetch() the remote script and run it.