Skip to content

Instantly share code, notes, and snippets.

@tclh123
Created October 5, 2013 17:05
Show Gist options
  • Save tclh123/6843438 to your computer and use it in GitHub Desktop.
Save tclh123/6843438 to your computer and use it in GitHub Desktop.
to enable user custom style
if (localStorage.userstyle){
var style = document.createElement('style');
style.textContent = localStorage.userstyle;
style.inject(document.body);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment