GM.setClipboard

From GreaseSpot Wiki
Revision as of 15:32, 20 June 2013 by Arantius (talk | contribs) (Created page with "{{DISPLAYTITLE:GM_setClipboard}} == Description == Sets the current contents of the operating system's clipboard. Compatibility: Greasemonkey 1.10+...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Description

Sets the current contents of the operating system's clipboard.

Compatibility: Greasemonkey 1.10+

Syntax

function GM_setClipboard( text )

Arguments

text
String Any text.

Examples

GM_setClipboard('http://www.example.com/short-url-code');