您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
为啥码云还要手动去点更新的???
当前为
// ==UserScript== // @name 码云点击更新page按钮 // @namespace https://xyw.baklib.com/ // @version 0.0.7 // @description 为啥码云还要手动去点更新的??? // @author Silencer // @match *://gitee.com/*/pages // @grant none // ==/UserScript== $.ajax({ url: location.href + "/rebuild", type: 'POST' }) let sum = 0 setInterval(() => { if (sum < 2) { localStorage.log += `${new Date().toLocaleString()} : 第${sum}次尝试更新; ` $.ajax({ url: location.href + "/rebuild", type: 'POST', data: { branch: $('#branch').val(), build_directory: $('#build_directory').val() || location.pathname.split('/')[2], domain: $('#domain').val(), force_https: $('.force-https-checkbox').hasClass('checked') }, }) } else { window.opener = null; window.open('', '_self'); window.close(); } sum++ }, 1000 * 60 * 3)