Skip to content

Commit 6f9058d

Browse files
removed everything of ezoic(proably ad generator). Removed unanted spaces
1 parent c82c552 commit 6f9058d

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

injection.js

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,15 @@ try {
1717
if (codeBlock) codeBlock.remove()
1818
})
1919

20-
// Ezoic AD
21-
const ezoicAds = document.getElementsByClassName("ezoic-ad")
22-
Array.from(ezoicAds).forEach((ezoicAd) => {
20+
// Ezoic AD ID
21+
const ezoicAdsID = document.querySelectorAll("[id*='ezoic']")
22+
Array.from(ezoicAdsID).forEach((ezoicAd) => {
23+
if (ezoicAd) ezoicAd.remove()
24+
})
25+
26+
// Ezoic Ad Class
27+
const ezoicAdsClass = document.querySelectorAll("[class*='ezoic']")
28+
Array.from(ezoicAdsClass).forEach((ezoicAd) => {
2329
if (ezoicAd) ezoicAd.remove()
2430
})
2531
}
@@ -40,11 +46,13 @@ try {
4046
// Comments
4147
removeComments()
4248

43-
// Ads
44-
removeAds()
49+
setInterval(() => {
50+
// Ads
51+
removeAds()
4552

46-
// Additional videos (universal insert)
47-
removeUniversalInsert()
53+
// Additional videos (universal insert)
54+
removeUniversalInsert()
55+
}, 1000)
4856

4957
// Stretch out the Main
5058
stretch()

0 commit comments

Comments
 (0)