-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkins_param_filter.js
33 lines (30 loc) · 1.11 KB
/
jenkins_param_filter.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// ==UserScript==
// @name Jenkins编译参数筛选
// @version 2.3.2
// @namespace https://izmj.net
// @license MIT
// @description 进行编译的时候,提供额外的筛选按钮。如果功能不好使,请查看match路径是否正确
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js
// @require https://cdn.jsdelivr.net/npm/[email protected]/dist/js/select2.min.js
// @resource select2css https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css
// @grant GM_addStyle
// @grant GM_getResourceText
// @match *://*/*job/*/build*
// @match *://*/view/*/job/*/build*
// @run-at document_end
// @icon64 https://gitee.com/izmj/web_js/raw/main/img/zmj.png
// ==/UserScript==
var select2css = GM_getResourceText("select2css");
GM_addStyle(select2css);
$("select").select2({
dropdownAutoWidth: true,
width: 'style',
maximumSelectionLength: 0,
});
$(document).ready(function () {
$("select").select2({
dropdownAutoWidth: true,
width: 'style',
maximumSelectionLength: 0,
});
});