首页 扩展程序 ClipCopy for Tampermonkey

ClipCopy for Tampermonkey

提供方: Rafaël Jafferali
22
效率 1,000+ 位用户

插件简介

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("Formatted text to copy to the clipboard. Wow!", "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.

其他信息

ID cehieljejfgbjhogonapjjndllliopfg 版本 0.1.1 上次更新日期 2012年11月17日 大小 30.9KiB 语言 支持1 种语言 开发者

raf.jaf@gmail.com

适用浏览器

谷歌浏览器、其他Chromium内核的浏览器

ClipCopy for Tampermonkey Chrome插件下载

为打击盗链困扰,本站已启用人机验证
微信扫码关注左侧公众号,发送“插件”二字获得验证码,验证码5分钟全站有效