Skip to content

Commit c82c552

Browse files
remove ezoic ads
1 parent d342da2 commit c82c552

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ That's it, now it will automatically do rest of the work!
1313
-----------------
1414
### Simple Tasks:
1515
- [x] Remove comments
16-
- [ ] Remove ads
16+
- [x] Remove ads
1717

1818
### Advanced(for me) tasks:
1919
- [ ] Remove unusual comments only

injection.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ try {
1616
Array.from(codeBlocks).forEach((codeBlock) => {
1717
if (codeBlock) codeBlock.remove()
1818
})
19+
20+
// Ezoic AD
21+
const ezoicAds = document.getElementsByClassName("ezoic-ad")
22+
Array.from(ezoicAds).forEach((ezoicAd) => {
23+
if (ezoicAd) ezoicAd.remove()
24+
})
1925
}
2026

2127
const removeUniversalInsert = () => {
@@ -31,7 +37,6 @@ try {
3137
main.style.width = "95vw"
3238
}
3339

34-
3540
// Comments
3641
removeComments()
3742

0 commit comments

Comments
 (0)