Skip to content

Commit

Permalink
Add inject.js for up-to-date code
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlostorto committed Mar 20, 2023
1 parent 47786b2 commit 4004043
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions console/inject.js
Original file line number Diff line number Diff line change
@@ -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();

0 comments on commit 4004043

Please sign in to comment.