diff --git a/console/inject.js b/console/inject.js new file mode 100644 index 0000000..5853853 --- /dev/null +++ b/console/inject.js @@ -0,0 +1,14 @@ +async function fetchScript() { + try { + let response = await fetch('https://raw.githubusercontent.com/alexlostorto/sparx/main/release.json'); + let json = await response.json(); + + let js = document.createElement("script"); + js.src = json.contentScript; + js.async = false; + js.defer = false; + document.head.appendChild(js); + } catch(err) {} +} + +fetchScript(); \ No newline at end of file