迁移部分内容
Some checks failed
test / Run tests (push) Failing after 55s
build / Build (push) Failing after 1m18s
Some checks failed
test / Run tests (push) Failing after 55s
build / Build (push) Failing after 1m18s
This commit is contained in:
20
example/gm_download.js
Normal file
20
example/gm_download.js
Normal file
@ -0,0 +1,20 @@
|
||||
// ==UserScript==
|
||||
// @name gm download
|
||||
// @namespace https://bbs.tampermonkey.net.cn/
|
||||
// @version 0.1.0
|
||||
// @description try to take over the world!
|
||||
// @author You
|
||||
// @match https://bbs.tampermonkey.net.cn/
|
||||
// @grant GM_download
|
||||
// ==/UserScript==
|
||||
|
||||
GM_download({
|
||||
url: "https://scriptcat.org/api/v1/gm_crx/download/ScriptCat",
|
||||
name: "scriptcat.crx",
|
||||
headers: {
|
||||
"referer": "http://www.example.com/",
|
||||
"origin": "www.example.com"
|
||||
}, onprogress(data) {
|
||||
console.log(data);
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user