GM addStyle

From GreaseSpot Wiki
Revision as of 03:58, 4 November 2006 by Arantius (talk | contribs) (title underscore template)
Jump to navigationJump to search

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