GM addStyle: Difference between revisions
From GreaseSpot Wiki
Jump to navigationJump to search
Starting from: http://greasemonkey.mozdev.org/authoring.html |
m title underscore template |
||
Line 1: | Line 1: | ||
{{underscore|title=GM_addStyle}} | |||
= Syntax = | = Syntax = | ||
Revision as of 03:58, 4 November 2006
Syntax
GM_addStyle( css )
Description
Adds a string of CSS to the document.
Creates a new <style>
element, adds the given CSS to it, and inserts it into the <head>
.
Examples
GM_addStyle("body { color:red; }");