Skip to content

CssFly/CustomCSSInjector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

CustomCSSInjector

Small CSS injector for referencing custom Style Sheet Files configured by URL.

Author: Philipp Hennermann 2015 License: M.I.T.

Usage:

  1. insert <script src="path/to/CustomCSSInjector.js"></script> before closing tag in your HTML

  2. external style sheets will be injected here

  3. you can activate the injection of external CSS by modifing the URL of your page, e.g. by URL-Parameter

       http://www.example.com/?customCSSpath=http://www.otherpage.com/style.css
    

OR by Hash:

      http://www.example.com/#customCSSpath=http://www.otherpage.com/style.css
      http://www.example.com/#customCSSpath=http://www.otherpage.com/style_1.css,http://www.otherpage.com/style_2.css

This will create a localStorage entry that serves the referenced CSS file by magic until you call your page with the parameter "off", e.g. by URL-Parameter

      http://www.example.com/?customCSSpath=off

OR by Hash

      http://www.example.com/#customCSSpath=off

About

Small CSS injector for referencing custom Style Sheet Files configured by URL.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published