您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
a Jenkins shortcut tools to build history
// ==UserScript== // @name Jenkins Build History 加强 // @namespace https://github.com/gaoshang212/jenkins-buildHistory-Ext // @version 0.1.1 // @description a Jenkins shortcut tools to build history // @author gaoshang212 // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // @include http://yd.koolearn-inc.com/view/* // @exclude http://yd.koolearn-inc.com/app/* // ==/UserScript== // 在 include 里输入您的 jenkins 地址 (function () { 'use strict'; function jenkins() { const $ = window.jQuery; if (!$) { return; } //'<a><img src="/static/f80a2d63/images/16x16/terminal.png" width="16" height="16" alt=""></a> ' $('.build-row-cell').each((index, _node) => { const node = $(_node); const cmdlink = node.find('.build-status-link').attr('href'); const ele = node.find('.pane.build-controls .build-badge'); if (!ele.length) { return; } ele.prepend(` <a href='${cmdlink}'><img src="/static/f80a2d63/images/16x16/terminal.png" width="16" height="16" alt=""></a> `) const reg = cmdlink.replace(/console.*/, '') ///(?!=\/view\/.+)\d+(?!=console)/.exec(cmdlink); if (reg) { ele.prepend(` <a href='${reg}rebuild'><img src="/static/f80a2d63/images/16x16/clock.png" width="16" height="16" alt=""></a> `) } }); } jenkins(); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址