Created
April 24, 2019 15:22
-
-
Save CorradoRossi/818e4322d1ed7592650023864eebac57 to your computer and use it in GitHub Desktop.
A function for injecting a CSS page into an existing site from the console
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
| (function(i,n,j,e,c,t,css){ | |
| css=i.createElement(n);t=i.getElementsByTagName(c)[0];css.href=j;css.rel=e; | |
| t.insertAdjacentElement('beforeend',css);}) | |
| (document,'link','https://yourdomain.xyz/path/to/the/stylesheet','stylesheet','head'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment