chromiumoxide/handler/blockers/
adblock_patterns.rs

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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
lazy_static::lazy_static! {
    pub static ref ADBLOCK_PATTERNS: Vec<&'static str> = {
        let adblock_patterns = vec![
            // Advertisement patterns
            "-advertisement.",
            "-advertisement-icon.",
            "-advertisement-management/",
            "-advertisement/script.",
            "-ads.",
            "-ads/script.",
            "-ad.",
            "ads.js",
            "gtm.js?",
            "googletagmanager.com",
            "ssl.google-analytics.com",
            // Tracking patterns
            "-tracking.",
            "-tracking/script.",
            ".tracking",
            ".snowplowanalytics.snowplow",
            ".mountain.com",
            "tracking.js",
            "track.js",
            "/upi/jslogger",
            "otBannerSdk.js",
            // Analytics scripts
            "analytics.js",
            "ob.cityrobotflower.com",
            "siteintercept.qualtrics.com",
            "iesnare.com",
            "iovation.com",
            "googletagmanager.com",
            "forter.com",
            "/first.iovation.com",
            // Specific ad and tracking domains
            "googlesyndication.com",
            ".googlesyndication.com/safeframe/",
            "adsafeprotected.com",
            "cxense.com/",
            ".sharethis.com",
            "amazon-adsystem.com",
            "g.doubleclick.net",
            // Explicit ignore for common scripts
            "privacy-notice.js",
            "insight.min.js",
        ];

        adblock_patterns
    };
}