添加 NPS自动分页50条.js
This commit is contained in:
parent
29e23b60b1
commit
c2b783a548
27
NPS自动分页50条.js
Normal file
27
NPS自动分页50条.js
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
// ==UserScript==
|
||||||
|
// @name 自动点击分页按钮
|
||||||
|
// @namespace http://tampermonkey.net/
|
||||||
|
// @version 1.0
|
||||||
|
// @description 页面加载完成后自动点击指定按钮和分页链接
|
||||||
|
// @author YourName
|
||||||
|
// @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