您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
gitee 自动填充commit到pr标题,多个则拼接
// ==UserScript== // @name gitee 自动填充commit到pr标题 // @namespace http://tampermonkey.net/ // @version 1.0 // @description gitee 自动填充commit到pr标题,多个则拼接 // @author xxyangyoulin // @match https://gitee.com/*/pull/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // @license MIT // ==/UserScript== function handle(){ let prt = document.getElementById('pull_request_title') if (!prt) return Array.prototype.forEach.call(document.getElementsByClassName('markdown-body'),function(item,index,arr){ if(item.innerText.indexOf("Merge ")===0)return if(prt.value)prt.value = prt.value+"; " prt.value = prt.value+item.innerText }); //默认删除本分支 if(document.getElementById("pull_request_source_branch").value!="develop") document.getElementsByClassName("prune-checkbox")[0].click(); Array.prototype.forEach.call(document.getElementsByName('normal_commit'),function(item,index,arr){ item.removeAttribute('disabled') item.classList.remove("disabled") }); } (function() { window.onload = function name() { setTimeout(() => { handle(); document.getElementById('pull_request_source_branch').onchange = function(){ console.log(1) handle(); } }, 500); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址