Difference between revisions of "GM addStyle"

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 23:58, 3 November 2006

Template:Underscore

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; }");