-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path423down_mobile_ad_remove.user.js
32 lines (29 loc) · 1.26 KB
/
423down_mobile_ad_remove.user.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
// ==UserScript==
// @name zd423(423down)移动版精简去推广
// @namespace https://github.com/Coconutat/browser-script-backup-Self-use/423down_mobile_ad_remove.user.js
// @version 0.1.beta
// @description zd423(423down)移动版精简去推广
// @author by Cocoontat
// @match https://www.423down.com/*
// @updateURL https://raw.githubusercontent.com/Coconutat/browser-script-backup-Self-use/main/423down_mobile_ad_remove.user.js
// @icon https://www.423down.com/wp-content/themes/D7/img/favicon.ico
// @grant none
// ==/UserScript==
(function () {
'use strict';
let url = window.location.href;
setTimeout(function () {
if (url.indexOf('423down') != -1) {
let li = document.querySelector("div#wrap > div.archive-list > ul.post-list").children;
for (let i = li.length - 1; i > -1; i--) {
let a = li[i].querySelectorAll('span');
for (let j = a.length - 1; j > -1; j--) {
if (a[j].innerText.indexOf('置顶') != -1){
li[i].remove();
break;
}
}
}
}
}, 3000); // 2000 milliseconds (2 seconds) delay
})();