Add-on for Tampermonkey allowing an userscript to copy text to the clipboard using gm_setclipboard api.
WARNING: this add-on has become obsolete since version 2.7.2890 of Tampermonkey, which implements GM_setClipboard by default.
This program is an add-on for Tampermonkey allowing an userscript to copy text to the clipboard using GM_setClipboard API.
The GM_setClipboard API was introduced in Scriptish, an add-on for firefox introducing new functionalities in comparison to Greasemonkey. This extension aims at emulating this particular API.
To activate gm_setclipboard api, insert the following line in the metadata block of your userscript:
// @require https://raw.github.com/rafjaf/ClipCopy-for-TM/master/lib/installGM_setClipboard.js
Afterwards, your can make your userscript copy text to the clipboard with the following command :
GM_setClipboard("Text to copy to the clipboard");
You can even copy formatted text this way :
GM_setClipboard("<u>Formatted</u> text to copy to the clipboard. <b>Wow!</b>", "html");
If you use the above-mentionned @require metatag, your userscript will still remain compatible with Scriptish. However, the GM_setClipboard API will not be available in Greasemonkey.
You can Follow the below Step By Step procedure to install the ClipCopy for Tampermonkey Chrome Extension to your Chrome Web browser.
It is the ClipCopy for Tampermonkey Chrome extension download link you can download and install Chrome Browser.
Tags: Particular Api , Master Lib , Extension Aims , Metadata Block , Gmsetclipboard Api , Gm Setclipboard Text , Userscript Copy Text , Copy Text , Gm Setclipboard Api , New Functionalities , Gm Setclipboard , Abovementionned Require Metatag , B Wow , Firefox Introducing , Require Metatag ,
Easily embed images into WorkFlowy
This extension helps you discover applicable tampermonkey UserScripts and stylish Customized Styles for the site you are exploring.
send2cgeo browser addon
The world's most popular userscript manager
株探内のPDFを前のように直接表示します。
The world's most popular userscript manager
一个插件,提供一揽子服务。
专为上班族设计的股票基金盯盘助手!实时关注您的自选
「好的!!武漢肺炎」:厭倦舔共媒體與共匪同路人堅持使用新冠肺炎嗎??不要再吵惹,直接一鍵全部變回武漢肺炎!!
Get high-res artwork for apps, music, books, movies, TV shows, and more, all types supported.