addNewStyleSheetByFullCSS | JavaScriptSource


JavaScriptSource Staff Sep 25, 2006


Have you ever wanted to add a style sheet to your document using the full CSS without having to use addRules and insertRules? While this method is a bit "non-standard", it's a pretty nifty approach that can be expanded upon.

I am styling!


Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: addStyleSheet.js


Paste this code into the HEAD section of your HTML document.


Paste this code into the BODY section of your HTML document

Leave a Response


Awesome.[br /][br /]Added to my greasemonkey script, now I can modify the CSS on any page with ease.[br /][br /]Oh Yeah!

Jimmy Aug 27, 2007

this is good

akil Jan 29, 2007