value变更
Some checks failed
test / Run tests (push) Failing after 3s
build / Build (push) Failing after 5s

This commit is contained in:
2025-04-08 23:54:06 +08:00
parent 3e660a2ea8
commit 9f70b7eb7a
7 changed files with 110 additions and 28 deletions

View File

@@ -15,8 +15,8 @@
// ==/UserScript==
GM_addValueChangeListener("test_set", function (name, oldval, newval, remote, tabid) {
GM_cookie("store", tabid,(storeId) => {
console.log("store",storeId);
GM_cookie("store", tabid, (storeId) => {
console.log("store", storeId);
});
});
@@ -30,3 +30,7 @@ setTimeout(() => {
}, 3000);
GM_setValue("test_set", new Date().getTime());
console.log(GM_getValue("test_set2"));
GM_setValue("test_set2", new Date().getTime());