Ind.ie is now Small Technology Foundation.
blocker-activation-test-rule.html 6.33 KB
Newer Older
1 2
<!DOCTYPE html><html lang="en"><head>
	<meta charset="utf-8">
3
	<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
4
	<title data-set-text="title">Better activation test rule. | Better</title>
5 6
	<link rel="stylesheet" href="/styles/magnific-popup.css">
	<link rel="stylesheet" href="/styles/global.css">
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.">
17
	<meta property="og:image" content="https://better.fyi/social.jpg">
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.">
20
</head>
21
<body data-set-attribute="class category" class="none">
22

23
	<header class="site-header" data-set-text="html header"><nav class="site-navigation">
24
			<h2 class="hide">Navigation</h2>
25
			<ul>
26
				<li data-set-repeat="navigationItem navigationList" data-set-attribute="class navigationItem.class" class="home">
27
					<a data-set-attribute="aria-selected navigationItem.selected; href navigationItem.link" data-set-text="navigationItem.label" href="/" aria-selected="false">Home</a>
28
				</li><li data-set-attribute="class navigationItem.class" data-set-alias="navigationItem navigationList 1" data-set-dummy="1" class="news">
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>
36 37 38
				</li>
			</ul>
		</nav></header>
39
	<main data-set-text="html content"><h1 id="better-activation-test-rule-">Better activation test rule.</h1>
40

41

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>
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>
49
    <span class="punctuation">-</span> <span class="key">load-type</span><span class="punctuation">:</span> <span class="value">first-party</span>
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>
52
</code></pre>
53
</section></main>
54 55
	<footer class="site-footer">
		<div class="footer-wrap">
56
			<a href="https://ind.ie"><img src="/images/indie.svg" alt="Ind.ie" class="indie-logo"></a>
57
			<h2>Made in Cork by <a href="https://ind.ie">Ind.ie</a></h2>
58
			<p id="privacy"><small><strong><a href="/legal">Privacy Policy:</a></strong> We exist to protect your privacy.</small></p>
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>
60
			<div data-set-if="category isNot home" class="downloads">
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>
63
			</div>
64 65
		</div>
	</footer>
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>

74

75
</body></html>