删除 NPS自动分页50条.js
This commit is contained in:
parent
4d04549e1b
commit
9de510ea62
@ -1,27 +0,0 @@
|
|||||||
// ==UserScript==
|
|
||||||
// @name NPS自动分页50条
|
|
||||||
// @namespace http://tampermonkey.net/
|
|
||||||
// @version 1.0
|
|
||||||
// @description 页面加载完成后自动点击指定按钮和分页链接
|
|
||||||
// @author 8ga
|
|
||||||
// @match http://118.178.230.87:38888/index/tcp
|
|
||||||
// @match http://115.29.241.23:38888/index/tcp
|
|
||||||
// @grant none
|
|
||||||
// @run-at document-idle
|
|
||||||
// ==/UserScript==
|
|
||||||
|
|
||||||
(function () {
|
|
||||||
'use strict';
|
|
||||||
window.addEventListener('load', function () {
|
|
||||||
const dropdownButton = document.querySelector("#page-wrapper > div.wrapper.wrapper-content.animated.fadeInRight > div > div > div > div.ibox-content > div.bootstrap-table.bootstrap4 > div.fixed-table-pagination > div.float-left.pagination-detail > span.page-list > span > button");
|
|
||||||
if (dropdownButton) {
|
|
||||||
dropdownButton.click();
|
|
||||||
setTimeout(() => {
|
|
||||||
const fourthLink = document.querySelector("#page-wrapper > div.wrapper.wrapper-content.animated.fadeInRight > div > div > div > div.ibox-content > div.bootstrap-table.bootstrap4 > div.fixed-table-pagination > div.float-left.pagination-detail > span.page-list > span > div > a:nth-child(4)");
|
|
||||||
if (fourthLink) {
|
|
||||||
fourthLink.click();
|
|
||||||
}
|
|
||||||
}, 500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
})();
|
|
||||||
Loading…
Reference in New Issue
Block a user