-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathyoutube_AG_rules.txt
29 lines (29 loc) · 1.88 KB
/
youtube_AG_rules.txt
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
[AdBlockPlus 2.0]
!
! Version: 2024 november
! Title: Block in video advertisements on Youtube.com READ NOTICE!
!
! Expires: 365 days
! You are free to copy and distribute this file, but use at your own risk
! Rules are based on AdGuard filters, so all credits go the AdGuard team
!
youtube.com#%#//scriptlet('set-constant', 'google_ad_status', '1')
youtube.com#%#//scriptlet('set-constant', 'yt.config_.EXPERIMENT_FLAGS.web_bind_fetch', 'false')
youtube.com#%#//scriptlet('set-constant', 'ytInitialPlayerResponse.adPlacements', 'undefined')
youtube.com#%#//scriptlet('set-constant', 'ytInitialPlayerResponse.adSlots', 'undefined')
youtube.com#%#//scriptlet('set-constant', 'ytInitialPlayerResponse.playerAds', 'undefined')
youtube.com#%#//scriptlet('set-constant', 'playerResponse.adPlacements', 'undefined')
youtube.com#%#//scriptlet('json-prune-xhr-response', 'playerResponse.adPlacements playerResponse.playerAds playerResponse.adSlots adPlacements playerAds adSlots', '', '/playlist\?list=|\/player(?!.*(get_drm_license))|watch\?[tv]=/')
youtube.com#%#//scriptlet('json-prune-fetch-response', 'playerResponse.adPlacements playerResponse.playerAds playerResponse.adSlots adPlacements playerAds adSlots', '', '/playlist\?list=|player\?|watch\?[tv]=/')
youtube.com#%#//scriptlet('adjust-setTimeout', '[native code]', '17000', '0.001')
youtube.com#%#//scriptlet('trusted-click-element', 'ytd-consent-bump-v2-lightbox .eom-buttons > .ytd-consent-bump-v2-lightbox > .ytd-consent-bump-v2-lightbox button.yt-spec-button-shape-next')
youtube.com##.ytp-cards-teaser
youtube.com##.ytp-paid-content-overlay
youtube.com##.ytp-featured-product
youtube.com##.ytp-suggested-action > button.ytp-suggested-action-badge
youtube.com##.annotation.iv-branding
youtube.com##.video-annotations
youtube.com#$##ticker.ytd-masthead { display: none!important; }
youtube.com###masthead-ad
youtube.com###player-ads
youtube.com##ytd-ad-slot-renderer