GM.setClipboard: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
(Created page with "{{DISPLAYTITLE:GM_setClipboard}} == Description == Sets the current contents of the operating system's clipboard. Compatibility: Greasemonkey 1.10+...")
 
m (Arantius moved page GM setClipboard to GM.setClipboard: Greasemonkey 4.0)
(No difference)

Revision as of 15:06, 3 November 2017


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