This repository has been archived by the owner on Jun 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (90 loc) · 4.67 KB
/
index.html
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/app/favicons/favicon.ico" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Remove tracker and hide your referrer while you browse the internet" />
<link rel="manifest" href="/app/favicons/site.webmanifest" />
<title>Privacy Redirect</title>
<link href="/app/static/css/main.css" rel="stylesheet">
<script src="//unpkg.com/alpinejs" defer></script>
</head>
<body>
<div id="root"
x-data="{ origin: window.location.origin, url: 'https://twitter.com/elonmusk/status/1608273870901096454?ref_src=twsrc%5EdUmBgUY', cleaned: '', json: ''}">
<div class="App">
<header class="App-header">
<h1>Privacy Redirect</h1>
<a href="https://github.com/mustakimali/privacy-redirect">Github</a>
</header>
<div class="content">
<div class="panel">
<p>
Removes all known trackers and hide your referrer before redirecting your visitor to another
site.
</p>
<div class="get-ext">
<a href="https://addons.mozilla.org/en-US/firefox/addon/privacydir/">
<img src="/app/static/media/get-the-addon-fx-apr-2020.svg" alt="Get Firefox Addon"
width="150px">
</a>
<a
href="https://chrome.google.com/webstore/detail/privacy-redirect/lhemfcjadpgnjpcplhcgmpbicbkbbdpe">
<img src="/app/static/media/chrome.png" alt="Get Chrome Extension" height="52px">
</a>
</div>
<div style="font-size: small;">
<a href="#for-your-website">Installation instruction for own your website</a> · <a
href="/app/privacy-policy.html">Privacy Policy</a> · <a
style="color: red; text-decoration: none;" href="https://forms.gle/Awk813kjEzhr4FJG6">👿
Report Spam</a>
</div>
<h2>How does it work?</h2>
<p>Simply prefix the link with <code x-text="origin + '/?'"></code></p>
<p>Paste a link below to see preview ⚡</p>
<input type="text" placeholder="Paste a link" x-model="url" @change="update($data)" />
<form>
<div style="font-size: x-large;">
<p>
<a :href="origin + '/?' + url" target="_blank" class="previewLink" rel="noreferrer">
<span id="host" x-text="origin + '/' "></span>?
<span id="orgUrl" x-html="url"></span></a>
</p>
</div>
Redirects to cleaned link by <a
href="https://whatsmyreferer.com/?utm_source=privacy-redirect">hiding your referrer</a>:
<br><br>
<input type="text" placeholder="Cleaned link will appear hear" readonly="" :value="cleaned" />
</form>
<div>
<small>If you specify <code>Content-Type: application/json</code> then you get a json
response.</small>
<pre class="preview" x-html="json"></pre>
</div>
</div>
<div class="panel" x-init="update($data)">
<h2 id="for-your-website">For your website</h2>
<p>Add the following script in your website</p>
<code><script src="https://privacydir.com/app/script.js"></script></code>
</div>
</div>
<div class="contentWide">
<span>Made with 💙 and 🦀 by <a href="https://mustak.im">Mohammad Mustakim Ali</a></span>
</div>
</div>
</div>
<script type="text/javascript" src="/app/script.js"></script>
<script>
function update(data) {
fetch(`/?${data.url}`, { headers: { "content-type": "application/json" } })
.then(r => r.json())
.then(d => {
data.json = JSON.stringify(d, null, 4);
data.cleaned = d.cleaned_url;
});
}
</script>
</body>
</html>