blocker-activation-test-rule.html 6.33 KB
Newer Older
Better Builder's avatar
Better Builder committed
1 2
<!DOCTYPE html><html lang="en"><head>
	<meta charset="utf-8">
Better Builder's avatar
Better Builder committed
3
	<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
Better Builder's avatar
Better Builder committed
4
	<title data-set-text="title">Better activation test rule. | Better</title>
Better Builder's avatar
Better Builder committed
5 6
	<link rel="stylesheet" href="/styles/magnific-popup.css">
	<link rel="stylesheet" href="/styles/global.css">
Better Builder's avatar
Better Builder committed
7 8 9 10 11 12 13 14 15 16
	<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=LbyxjJleOL">
	<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=LbyxjJleOL">
	<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=LbyxjJleOL">
	<link rel="manifest" href="/site.webmanifest?v=LbyxjJleOL">
	<link rel="mask-icon" href="/safari-pinned-tab.svg?v=LbyxjJleOL" color="#0098fe">
	<link rel="shortcut icon" href="/favicon.ico?v=LbyxjJleOL">
	<meta name="msapplication-TileColor" content="#2d89ef">
	<meta name="theme-color" content="#ffffff">
	<meta property="og:title" content="Better">
	<meta property="og:description" content="Better is a privacy tool for Safari that protects you from trackers and privacy-eroding ads on the web.">
Better Builder's avatar
Better Builder committed
17
	<meta property="og:image" content="https://better.fyi/social.jpg">
Better Builder's avatar
Better Builder committed
18 19
	<meta property="twitter:card" content="summary_large_image">
	<meta property="twitter:description" content="Better is a privacy tool for Safari that protects you from trackers and privacy-eroding ads on the web.">
Better Builder's avatar
Better Builder committed
20
</head>
Better Builder's avatar
Better Builder committed
21
<body data-set-attribute="class category" class="none">
Better Builder's avatar
Better Builder committed
22

Better Builder's avatar
Better Builder committed
23
	<header class="site-header" data-set-text="html header"><nav class="site-navigation">
Better Builder's avatar
Better Builder committed
24
			<h2 class="hide">Navigation</h2>
Better Builder's avatar
Better Builder committed
25
			<ul>
Better Builder's avatar
Better Builder committed
26
				<li data-set-repeat="navigationItem navigationList" data-set-attribute="class navigationItem.class" class="home">
Better Builder's avatar
Better Builder committed
27
					<a data-set-attribute="aria-selected navigationItem.selected; href navigationItem.link" data-set-text="navigationItem.label" href="/" aria-selected="false">Home</a>
Better Builder's avatar
Better Builder committed
28
				</li><li data-set-attribute="class navigationItem.class" data-set-alias="navigationItem navigationList 1" data-set-dummy="1" class="news">
Better Builder's avatar
Better Builder committed
29 30 31 32 33 34 35
					<a data-set-attribute="aria-selected navigationItem.selected; href navigationItem.link" data-set-text="navigationItem.label" href="/news" aria-selected="false">News</a>
				</li><li data-set-attribute="class navigationItem.class" data-set-alias="navigationItem navigationList 2" data-set-dummy="1" class="sites">
					<a data-set-attribute="aria-selected navigationItem.selected; href navigationItem.link" data-set-text="navigationItem.label" href="/sites" aria-selected="false">Sites</a>
				</li><li data-set-attribute="class navigationItem.class" data-set-alias="navigationItem navigationList 3" data-set-dummy="1" class="trackers">
					<a data-set-attribute="aria-selected navigationItem.selected; href navigationItem.link" data-set-text="navigationItem.label" href="/trackers" aria-selected="false">Trackers</a>
				</li><li data-set-attribute="class navigationItem.class" data-set-alias="navigationItem navigationList 4" data-set-dummy="1" class="support">
					<a data-set-attribute="aria-selected navigationItem.selected; href navigationItem.link" data-set-text="navigationItem.label" href="/support" aria-selected="false">Support</a>
Better Builder's avatar
Better Builder committed
36 37 38
				</li>
			</ul>
		</nav></header>
Better Builder's avatar
Better Builder committed
39
	<main data-set-text="html content"><h1 id="better-activation-test-rule-">Better activation test rule.</h1>
Better Builder's avatar
Better Builder committed
40

Better Builder's avatar
Better Builder committed
41

Better Builder's avatar
Better Builder committed
42 43 44 45 46
<section id="important-">
	<h2>Important!</h2>
<p><strong>Do not edit or remove!</strong> This rule is essential for the proper functioning of the iOS app.</p>
<p>This rule blocks the <code>test.js</code> script. The Better iOS app loads the <code>index.html</code> file which tries to load this script. If the blocker is inactive, the script will load and the browser will be redirected to a URL that signals that the blocker is inactive. If blocked, execution falls through to some inline JavaScript that forwards the browser to a URL that signals that the blocker is active.</p>
<p>Even though this rule is hardcoded into the blockerList.json that’s in the Blocker content blocker extension, that’s only used until the actual data is downloaded via Git. After that, the blockerList.json file from the data-for-apps repository is used. This is the file that adds the rule to that (main) blocker list file.</p>
Better Builder's avatar
Better Builder committed
47 48
<pre><code class="mson"><span class="punctuation">-</span> <span class="key top-level">trigger</span><span class="punctuation">:</span>
    <span class="punctuation">-</span> <span class="key">url-filter</span><span class="punctuation">:</span> <span class="value">localhost:8000/test.js</span>
Better Builder's avatar
Better Builder committed
49
    <span class="punctuation">-</span> <span class="key">load-type</span><span class="punctuation">:</span> <span class="value">first-party</span>
Better Builder's avatar
Better Builder committed
50 51
<span class="punctuation">-</span> <span class="key top-level">action</span><span class="punctuation">:</span>
    <span class="punctuation">-</span> <span class="key">type</span><span class="punctuation">:</span> <span class="value">block</span>
Better Builder's avatar
Better Builder committed
52
</code></pre>
Better Builder's avatar
Better Builder committed
53
</section></main>
Better Builder's avatar
Better Builder committed
54 55
	<footer class="site-footer">
		<div class="footer-wrap">
Better Builder's avatar
Better Builder committed
56
			<a href="https://ind.ie"><img src="/images/indie.svg" alt="Ind.ie" class="indie-logo"></a>
Better Builder's avatar
Better Builder committed
57
			<h2>Made in Cork by <a href="https://ind.ie">Ind.ie</a></h2>
Better Builder's avatar
Better Builder committed
58
			<p id="privacy"><small><strong><a href="/legal">Privacy Policy:</a></strong> We exist to protect your privacy.</small></p>
Better Builder's avatar
Better Builder committed
59
			<p><small>All content on this site, except <a href="/legal">our trademarks</a>, is released under <a href="https://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International</a>. <a href="https://source.ind.ie/better/" class="view-source">View Source</a></small></p>
Better Builder's avatar
Better Builder committed
60
			<div data-set-if="category isNot home" class="downloads">
Better Builder's avatar
Better Builder committed
61 62
				<a href="https://itunes.apple.com/us/app/better-by-ind.ie/id1080964978?ls=1&amp;mt=8" class="download-on-the-app-store"><img class="download-on-the-app-store-badge" alt="Download on the App Store" src="/images/download-on-app-store-badge-black.svg"></a>
				<a href="https://itunes.apple.com/us/app/better/id1121192229?ls=1&amp;mt=12" class="download-on-mac-app-store"><img src="/images/download-on-the-mac-app-store-black.svg" class="no-frame" alt="Download on the Mac App Store"></a>
Better Builder's avatar
Better Builder committed
63
			</div>
Better Builder's avatar
Better Builder committed
64 65
		</div>
	</footer>
Better Builder's avatar
Better Builder committed
66 67 68 69 70 71 72 73

	<!-- Scripts for performance visualisations -->
	<script src="/scripts/zepto.min.js"></script>
	<script> var jQuery = Zepto; </script>
	<script src="/scripts/jquery.peity.min.js"></script>
	<script src="/scripts/magnific-popup.min.js"></script>
	<script src="/scripts/better.js"></script>

Better Builder's avatar
Better Builder committed
74

Better Builder's avatar
Better Builder committed
75
</body></html>