GM.setClipboard

From GreaseSpot Wiki
Revision as of 15:07, 3 November 2017 by Arantius (talk | contribs) (Update for 4.0)
(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.

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');