[JavaScript] 纯文本查看 复制代码 // ==UserScript==
// [url=home.php?mod=space&uid=170990]@name[/url] auto save
// [url=home.php?mod=space&uid=467642]@namespace[/url] [url]http://tampermonkey.net/[/url]
// [url=home.php?mod=space&uid=1248337]@version[/url] 2024-07-07
// @description try to take over the world!
// [url=home.php?mod=space&uid=686208]@AuThor[/url] You
// [url=home.php?mod=space&uid=195849]@match[/url] [url]https://localization.devexpress.com/Localization/Modify?version=2024.1&culture=zh-Hans[/url]
// [url=home.php?mod=space&uid=593100]@Icon[/url] [url]https://www.google.com/s2/favicons?sz=64&domain=devexpress.com[/url]
// [url=home.php?mod=space&uid=609072]@grant[/url] none
// ==/UserScript==
(function() {
'use strict';
// Your code here...
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
//第一次加载先等待5s在运行
console.log("第一次加载先等待5s在运行");
sleep(5000);
function loop() {
console.log("dealing");
let selectList = document.querySelectorAll(".arrow-right");
selectList.forEach(t => {
t.click();
});
document.querySelector(".btn__secondary-btn.btn--large-font.btn--large-font.btn--right-margin").click();
console.log("sleeping");
sleep(3000).then(loop);
document.querySelector(".pager__button.pager__button--forward").click();
}
// 启动循环
loop();
})();
写了个 简单的Tampermonkey 油猴插件 |