GM.setClipboard

From GreaseSpot Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Description

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

Syntax

function GM.setClipboard( text )

Compatibility: Greasemonkey 4.0+

Arguments

text
String Any text.

Returns

undefined

Examples

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