Skip to content

GM_addStyle

shen yin edited this page Jan 31, 2022 · 1 revision

It creates a new <style> element, adds the given CSS to it, and inserts it into the .

Availability

Stay 2.0.2+

Declaration

GM_addStyle(css)

Parameters

message
css

Return Value

undefined

Example

GM_addStyle("body { color: white; background-color: black } img { border: 0 }");