迁移部分内容
Some checks failed
test / Run tests (push) Failing after 55s
build / Build (push) Failing after 1m18s

This commit is contained in:
2025-01-10 17:56:30 +08:00
parent c2e5c7600e
commit af15d67cb3
52 changed files with 6308 additions and 23 deletions

21
example/gm_save_tab.js Normal file
View File

@ -0,0 +1,21 @@
// ==UserScript==
// @name gm get/save tab
// @namespace https://bbs.tampermonkey.net.cn/
// @version 0.1.0
// @description 用于保存当前标签页的数据, 关闭后会自动删除, 可以获取其它标签页的数据
// @author You
// @match https://bbs.tampermonkey.net.cn/
// @grant GM_saveTab
// @grant GM_getTab
// @grant GM_getTabs
// ==/UserScript==
GM_saveTab({ test: "save" });
GM_getTab(data => {
console.log(data);
});
GM_getTabs(data => {
console.log(data);
});