GM.setClipboard: Difference between revisions
From GreaseSpot Wiki
Jump to navigationJump to search
m Arantius moved page GM setClipboard to GM.setClipboard: Greasemonkey 4.0 |
Update for 4.0 |
||
Line 1: | Line 1: | ||
== Description == | == Description == | ||
Sets the current contents of the operating system's clipboard. | Sets the current contents of the operating system's clipboard. | ||
== Syntax == | |||
{{Function|GM.setClipboard|text}} | |||
Compatibility: [[Version_history#4.0_2|Greasemonkey 4.0+]] | |||
=== Arguments === | === Arguments === | ||
Line 15: | Line 13: | ||
; <code>text</code> | ; <code>text</code> | ||
: <code>String</code> Any text. | : <code>String</code> Any text. | ||
== Returns == | |||
<code>undefined</code> | |||
== Examples == | == Examples == | ||
<pre class='sample'> | <pre class='sample'> | ||
GM.setClipboard('http://www.example.com/short-url-code'); | |||
</pre> | </pre> | ||
[[Category:API_Reference|S]] | [[Category:API_Reference|S]] |
Latest revision as of 15:07, 3 November 2017
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');