trackingPage.html (4044B)
1 <!DOCTYPE HTML> 2 <!-- This Source Code Form is subject to the terms of the Mozilla Public 3 - License, v. 2.0. If a copy of the MPL was not distributed with this 4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 5 <!-- This asset is using the code behind 6 - https://www.mozilla-anti-tracking.com/test/trackingprotection/test_pages/tracking_protection.html 7 - test page. 8 - Source repository: https://github.com/mozilla/anti-tracking-test-pages --> 9 <html dir="ltr" xml:lang="en-US" lang="en-US"> 10 <head> 11 <meta charset="utf8"> 12 <script src="../resources/trackingAPI.js" type="text/javascript"></script> 13 </head> 14 <body> 15 <h3>Level 1 (Basic) List</h3> 16 <p>social-track-digest256:</p> 17 <img 18 src="https://social-track-digest256.dummytracker.org/test_not_blocked.png" alt="social not blocked" 19 onerror="this.onerror=null;this.src='https://not-a-tracker.dummytracker.org/test_blocked.png';this.alt='social blocked'"> 20 <br/> 21 <p>ads-track-digest256:</p> 22 <img 23 src="https://ads-track-digest256.dummytracker.org/test_not_blocked.png" alt="ads not blocked" 24 onerror="this.onerror=null;this.src='https://not-a-tracker.dummytracker.org/test_blocked.png';this.alt='ads blocked'"> 25 <br/> 26 <p>analytics-track-digest256:</p> 27 <img 28 src="https://analytics-track-digest256.dummytracker.org/test_not_blocked.png" alt="analytics not blocked" 29 onerror="this.onerror=null;this.src='https://not-a-tracker.dummytracker.org/test_blocked.png';this.alt='analytics blocked'"> 30 <br/> 31 <p>Fingerprinting: 32 <pre id="result">test not run</pre> 33 <script src="https://base-fingerprinting-track-digest256.dummytracker.org/tracker.js" 34 onerror="this.onerror=null;var result=document.getElementById('result');result.innerHTML='Fingerprinting blocked';" 35 onload="this.onload=null;var result=document.getElementById('result');result.innerHTML='Fingerprinting not blocked';" 36 ></script> 37 </p> 38 <br/> 39 <p>Cryptomining: 40 <img 41 src="https://base-cryptomining-track-digest256.dummytracker.org/test_not_blocked.png" alt="Cryptomining not blocked" 42 onerror="this.onerror=null;this.src='https://not-a-tracker.dummytracker.org/test_blocked.png';this.alt='Cryptomining blocked'"> 43 </p> 44 45 <p><b>Cookie blocking</b> 46 </p> 47 <iframe height=0 width=0 src="https://social-tracking-protection-facebook-digest256.dummytracker.org/cookie_access_test.html?test_origin=senglehardt.com"></iframe> 48 <iframe height=0 width=0 src="https://social-tracking-protection-linkedin-digest256.dummytracker.org/cookie_access_test.html?test_origin=senglehardt.com"></iframe> 49 <iframe height=0 width=0 src="https://social-tracking-protection-twitter-digest256.dummytracker.org/cookie_access_test.html?test_origin=senglehardt.com"></iframe> 50 <p> 51 * Facebook-cookies <pre id="social-tracking-protection-facebook-digest256"></pre> 52 * LinkedIn-cookies <pre id="social-tracking-protection-linkedin-digest256"></pre> 53 * Twitter-cookies <pre id="social-tracking-protection-twitter-digest256"></pre> 54 </p> 55 56 <script> 57 function updateCookieStatus(statusMessage, list) { 58 var output = document.getElementById(list); 59 if (statusMessage === 'cookies') { 60 output.innerHTML = "Cookies not blocked"; 61 } else if (statusMessage === 'no_cookies') { 62 output.innerHTML = "Blocked"; 63 } else { 64 output.innerHTML = "Unrecognized status"; 65 } 66 } 67 window.addEventListener("message", event => { 68 lists = [ 69 'social-tracking-protection-facebook-digest256', 70 'social-tracking-protection-linkedin-digest256', 71 'social-tracking-protection-twitter-digest256' 72 ]; 73 lists.forEach(list => { 74 if (event.origin === `https://${list}.dummytracker.org`) { 75 updateCookieStatus(event.data, list); 76 } 77 }); 78 }); 79 </script> 80 </body> 81 </html>