码云点击更新page按钮

为啥码云还要手动去点更新的???

目前為 2020-04-23 提交的版本,檢視 最新版本

// ==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)

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址