ClipCopy for Tampermonkey Chrome 插件, crx 扩展下载

 收录于3年前 阅读数 28

扩展ID: cehieljejfgbjhogonapjjndllliopfg

Add-on for Tampermonkey allowing an userscript to copy text to the clipboard using GM_setClipboard APIWARNING: 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.
名称 ClipCopy for Tampermonkey
插件标识 cehieljejfgbjhogonapjjndllliopfg
平台 Chrome
评分 0
评分人数 22
插件主页

作者 raf.jaf
版本号 0.1.1
大小 30.11 KB
官网下载次数 2000
分类 查看更多 生产效率 分类下的扩展插件
下载地址
更新时间 2012-11-17 00:00:00
举报
回复

大家在找这些插件