Skip to content

Instantly share code, notes, and snippets.

@ICEDLEE337
Created December 27, 2018 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ICEDLEE337/9f82c001f3295b47274da217ae708e52 to your computer and use it in GitHub Desktop.
Save ICEDLEE337/9f82c001f3295b47274da217ae708e52 to your computer and use it in GitHub Desktop.
url = 'https://gist.githubusercontent.com/ICEDLEE337/5db30bd28cc8ea2aefa974c5ef4b4400/raw/bba284eab353ab9a7ba5c58554db02730cada218/togglii.js';
fetch(url)
.then(r => r.text())
.then(inject);
function inject (text) {
var script = Object.assign(document.createElement('script'), {innerText: text});
document.body.appendChild(script);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment