GM.setClipboard

From GreaseSpot Wiki
Revision as of 15:06, 3 November 2017 by Arantius (talk | contribs) (Arantius moved page GM setClipboard to GM.setClipboard: Greasemonkey 4.0)
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');