Created
December 27, 2018 19:48
-
-
Save ICEDLEE337/9f82c001f3295b47274da217ae708e52 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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