-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.js
More file actions
29 lines (29 loc) · 1.05 KB
/
Copy pathcontent.js
File metadata and controls
29 lines (29 loc) · 1.05 KB
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
setInterval(() => {
const a1 = document.getElementsByClassName('ytp-ad-skip-button-slot');
const a2 = document.getElementsByClassName('ytp-ad-skip-button-container');
const a3 = document.getElementsByClassName('ytp-ad-skip-button-modern');
const a4 = document.getElementsByClassName('ytp-ad-skip-button-text');
const a5 = document.getElementsByClassName('ytp-ad-skip-button');
const a6 = document.getElementsByClassName('ytp-ad-preview-slot');
for (let i = 0; i < a1.length; i++) {
a1[i].style.display = "block";
}
for (let i = 0; i < a2.length; i++) {
a2[i].style.display = "block";
}
for (let i = 0; i < a3.length; i++) {
a3[i].style.display = "block";
}
for (let i = 0; i < a4.length; i++) {
a4[i].style.display = "block";
}
for (let i = 0; i < a5.length; i++) {
a5[i].style.display = "block";
}
for (let i = 0; i < a6.length; i++) {
a6[i].style.display = "none";
}
if (a5.length > 0) {
a5[0].click();
}
}, 1000);