Add new userscript

This commit is contained in:
2024-05-13 13:54:21 +08:00
parent 49a457f107
commit 3f01dcb726

19
tsdm_dj.js Normal file
View File

@@ -0,0 +1,19 @@
// ==UserScript==
// @name 天使动漫打工
// @namespace https://github.com/lifegpc/userscript
// @version 0.0.1
// @description 天使动漫打工替换广告链接
// @author lifegpc
// @match https://tsdm39.com/plugin.php?id=np_cliworkdz:work
// ==/UserScript==
function auto_work() {
const datas = document.querySelectorAll(".npadv > a");
if (datas.length !== 6) {
setTimeout(auto_work, 1000);
} else {
for (const d of datas) {
d.href = "about:blank";
}
}
}
auto_work()