猫史档案馆


给kitten整了个插件

用户:lsk666666lsk666666查看:0 回复:1 评论:0 创建时间:2021-05-23T19:26:09


灵感:https://shequ.codemao.cn/community/280987

写了个油猴脚本

// ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://kitten.codemao.cn/
// @icon         https://www.google.com/s2/favicons?domain=codemao.cn
// @grant        none
// @require      http://code.jquery.com/jquery-1.11.0.min.js
// ==/UserScript==

(function() {
    'use strict';
    console.log("test")
    setTimeout(() => {
        console.log("test")
        setInterval(() => {
            let ele = document.getElementById('btn_save_project');
            ele.click();
            console.log("Auto saved.");
        }, 100000)
    }, 5000);
    // Your code here...
})();


回复

上一页1 页 / 共 1下一页
lsk666666lsk666666

setInterval的数字是自动保存时间,单位是毫秒

所有的c喵ole.log都是调试用,可删

点赞0


评论