GM addStyle

From GreaseSpot Wiki
Revision as of 13:15, 3 November 2006 by Arantius (talk | contribs) (Starting from: http://greasemonkey.mozdev.org/authoring.html)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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