基本实现完成GM API

This commit is contained in:
2025-04-12 02:05:10 +08:00
parent 5c0d4a2560
commit d697928fb0
20 changed files with 631 additions and 99 deletions

View File

@ -1,5 +1,5 @@
// ==UserScript==
// @name New Userscript
// @name GM cookie操作
// @namespace https://bbs.tampermonkey.net.cn/
// @version 0.1.0
// @description 可以控制浏览器的cookie, 必须指定@connect, 并且每次一个新的域调用都需要用户确定
@ -9,8 +9,6 @@
// @connect example.com
// ==/UserScript==
// GM_cookie("store") 方法请看storage_name/gm_value.js的例子, 可用于隐身窗口的操作
GM_cookie("set", {
url: "http://example.com/cookie",
name: "cookie1", value: "value"