ClipCopy for Tampermonkey
Add-on for Tampermonkey allowing an userscript to copy text to the clipboard using GM_setClipboard API
什麼是ClipCopy for Tampermonkey?
ClipCopy for Tampermonkey是由Rafaël Jafferali開發的Chrome擴展程式,該擴展的主要功能是“Add-on for Tampermonkey allowing an userscript to copy text to the clipboard using GM_setClipboard API”。
下載ClipCopy for Tampermonkey擴展crx文件
下載ClipCopy for Tampermonkey擴展crx格式的文件,手動將Chrome擴充功能安裝到瀏覽器中,也可以將crx文件分享給朋友,輕鬆安裝Chrome擴充功能。
擴展使用說明
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 |
| 官方網址 | https://chrome.google.com/webstore/detail/clipcopy-for-tampermonkey/cehieljejfgbjhogonapjjndllliopfg |
| 簡介 | Add-on for Tampermonkey allowing an userscript to copy text to the clipboard using GM_setClipboard API |
| 檔案大小 | 30.9 KB |
| 安裝次數 | 1,905 |
| 目前版本 | 0.1.1 |
| 更新時間 | 2012-11-17 |
| 上架時間 | 2012-11-17 |
| 評分 | 4.05/5 共 22 次評分 |
| 開發者 | Rafaël Jafferali |
| 電子郵箱 | [email protected] |
| 付費類型 | free |
| 擴展官網 | https://github.com/rafjaf/ClipCopy-for-TM |
| 支援的語言 | en-GB |
| manifest.json | |
{
"update_url": "http:\/\/clients2.google.com\/service\/update2\/crx",
"name": "ClipCopy for Tampermonkey",
"version": "0.1.1",
"manifest_version": 2,
"description": "Add-on for Tampermonkey allowing an userscript to copy text to the clipboard using GM_setClipboard API",
"icons": {
"16": "\/img\/icon16.png",
"48": "\/img\/icon48.png",
"128": "\/img\/icon128.png"
},
"background": {
"page": "\/bg\/background.html"
},
"options_page": "\/about\/about.html",
"permissions": [
"clipboardWrite",
"storage"
]
} | |