File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change 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 ( )
You can’t perform that action at this time.
0 commit comments