GM addStyle

From GreaseSpot Wiki
Revision as of 03:25, 6 December 2006 by LouCypher (talk | contribs) (categorized)
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; }");