-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathindex.html
304 lines (294 loc) · 17 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
<!DOCTYPE html>
<html data-bs-theme="light">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Link Cleaner</title>
<meta name="description" content="Link Cleaner is a web app that removes unnecessary junk from links in one click.">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<link rel="apple-touch-icon" sizes="192x192" href="img/maskable_icon_x192.png">
<link rel="icon" type="image/png" sizes="24x24" href="img/baseline_link_black_24dp.png">
<link rel="manifest" href="site.webmanifest">
<link rel="shortcut icon" href="favicon.ico">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<!-- Search engine -->
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="LinkCleaner">
<!-- Theme colors -->
<meta name="color-scheme" content="dark light">
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#FFF">
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#212529">
<!-- Open Graph card -->
<meta property="og:url" content="https://linkcleaner.app" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Link Cleaner" />
<meta property="og:description" content="Remove tracking code and other variables from web links with the press of a button!" />
<meta property="og:image" content="https://linkcleaner.app/img/maskable_icon_x512.png" />
<meta property="og:image:width" content="512" />
<meta property="og:image:height" content="512" />
<meta name="og:image:alt" content="Link Cleaner app icon" />
<meta name="twitter:card" content="summary" />
<!-- Schema for Google Search -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"url": "https://linkcleaner.app",
"potentialAction": {
"@type": "SearchAction",
"target": {
"@type": "EntryPoint",
"urlTemplate": "https://linkcleaner.app/?utm_source=Sitelinks%20Searchbox&url={search_term_string}"
},
"query-input": "required name=search_term_string"
}
}
</script>
<!-- Bootstrap and custom styles -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.0/font/bootstrap-icons.css">
<link href="/css/custom.css" rel="stylesheet">
<script src="/js/dark.js"></script>
<!-- Analytics -->
<script defer data-domain="linkcleaner.app" src="https://plausible.io/js/plausible.js"></script>
</head>
<body>
<!-- Nav bar -->
<nav class="navbar fixed-bottom navbar-expand-sm bg-body-secondary border-top shadow">
<div class="container-fluid">
<a class="navbar-brand d-sm-none" href="#">Link Cleaner</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">
<i class="bi bi-link-45deg"></i>
Normal Mode
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/bulk/">
<i class="bi bi-stack"></i>
Bulk Mode
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/history/">
<i class="bi bi-clock-history"></i>
History
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/settings/">
<i class="bi bi-gear-fill"></i>
Settings
</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Main container -->
<div class="container">
<!-- Main text field -->
<div class="mt-2 mb-3 mt-sm-5 mb-sm-5">
<!-- Initial text input -->
<div id="initial">
<div class="input-group">
<input type="text" class="form-control form-control-lg" id="link-input" autocomplete="off" placeholder="Type or paste a link here">
<button class="btn btn-outline-secondary" type="button" id="link-submit" aria-label="Submit link"><i class="bi-chevron-right"></i></button>
</div>
<div class="row">
<div class="col-12">
<button class="btn btn-outline-primary w-100 mt-2" type="button" id="link-paste-btn" aria-label="Paste from clipboard">
<i class="bi-clipboard"></i>
Paste from Clipboard
</button>
</div>
</div>
</div>
<!-- Completed UI -->
<div id="completed" style="display: none;">
<div class="input-group">
<input type="text" class="form-control form-control-lg" id="link-output" readonly autocomplete="off">
<button class="btn btn-outline-secondary" type="button" id="link-startover" aria-label="Clean another link"><i class="bi bi-arrow-counterclockwise"></i></button>
</div>
<!-- Main action buttons -->
<div class="row">
<div class="col-12 col-lg-4">
<button type="button" class="btn btn-primary w-100 mt-3" id="link-share-btn" aria-label="Share">
<i class="bi bi-share-fill"></i>
Share
</button>
</div>
<div class="col-12 col-lg-4">
<button type="button" class="btn btn-primary w-100 mt-3" id="link-copy-btn" aria-label="Copy to Clipboard">
<i class="bi bi-clipboard me-2"></i>
Copy to Clipboard
</button>
</div>
<div class="col-12 col-lg-4">
<button type="button" class="btn btn-primary w-100 mt-3" id="link-test-btn">
<i class="bi bi-box-arrow-up-right me-2"></i>
Test link
</button>
</div>
<div class="col-12 col-lg-4">
<button type="button" class="btn btn-primary w-100 mt-3" id="link-qr-btn" data-bs-toggle="modal" data-bs-target="#qr-modal" aria-label="Open QR code">
<i class="bi bi-qr-code me-2"></i>
Show QR code
</button>
</div>
<div class="col-12 col-lg-4">
<button type="button" class="btn btn-primary w-100 mt-3" id="email-btn" aria-label="Send in Email">
<i class="bi bi-envelope me-2"></i>
Send in Email
</button>
</div>
<div class="col-12 col-lg-4">
<button type="button" class="btn btn-primary w-100 mt-3" id="sms-btn" aria-label="Send in Text">
<i class="bi bi-chat-left-dots-fill me-2"></i>
Send in Text
</button>
</div>
</div>
<!-- Social media buttons -->
<div class="row">
<div class="h5 mt-4">Social media</div>
</div>
<div class="row">
<!-- Mastodon -->
<div class="col-12 col-sm-6 col-md-4">
<button type="button" class="btn btn-light w-100 mt-3" data-bs-toggle="modal" data-bs-target="#mastodon-modal">
<i class="bi bi-mastodon me-2"></i>
Mastodon
</button>
</div>
<!-- Facebook -->
<div class="col-12 col-sm-6 col-md-4">
<button type="button" class="btn btn-light w-100 mt-3" id="facebook-share-btn">
<i class="bi bi-facebook me-2"></i>
Facebook
</button>
</div>
<!-- LinkedIn -->
<div class="col-12 col-sm-6 col-md-4">
<button type="button" class="btn btn-light w-100 mt-3" id="linkedin-share-btn">
<i class="bi bi-linkedin me-2"></i>
LinkedIn
</button>
</div>
<!-- Reddit -->
<div class="col-12 col-sm-6 col-md-4">
<button type="button" class="btn btn-light w-100 mt-3" id="reddit-share-btn">
<i class="bi bi-reddit me-2"></i>
Reddit
</button>
</div>
<!-- Telegram -->
<div class="col-12 col-sm-6 col-md-4">
<button type="button" class="btn btn-light w-100 mt-3" id="telegram-share-btn">
<i class="bi bi-telegram me-2"></i>
Telegram
</button>
</div>
<!-- Substack Notes -->
<div class="col-12 col-sm-6 col-md-4">
<button type="button" class="btn btn-light w-100 mt-3" id="substack-share-btn">
<i class="bi bi-bookmark-fill me-2"></i>
Substack Notes
</button>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-lg-6">
<div class="card mt-3">
<div class="card-body">
<h5 class="card-title">What does this do?</h5>
<p class="card-text">Link Cleaner is a web app that removes unnecessary junk from web links in one click. The result can then be copied to the device clipboard, shared to another app or service, or displayed as a QR code for easy scanning.</p>
<p>If you install Link Cleaner with a supported browser and operating system (e.g. Chrome on Android), it appears in your system share menu. Through the share menu, you can send clean links to apps by first sharing them to Link Cleaner, and then Link Cleaner can reopen the share menu with the clean links.</p>
<p>Link Cleaner also has a <a href="https://www.icloud.com/shortcuts/ee666d7227c34abebe7e568e5e1b4016" target="_blank">Shortcut</a> for easy access on iPhones and iPads, and it appears as a search engine suggestion in desktop web browsers. If you want to use Link Cleaner in other workflows, you can open a URL with <code>https://linkcleaner.app/?url=X</code>. The url parameter should be a link that has been <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent" target="_blank">properly encoded</a>.</p>
</div>
</div>
</div>
<div class="col-12 col-lg-6 mb-3">
<!-- The Spacebar ad -->
<div class="card mt-3">
<div class="card-header">
Advertisement
</div>
<div class="card-body">
<p class="card-text">Check out <b>The Spacebar</b>, a technology blog and newsletter by the developer of Link Cleaner, Corbin Davenport.</p>
<a href="https://www.spacebar.news/#/portal/signup" target="_blank" class="btn btn-primary btn-sm w-100">Go to The Spacebar</a>
</div>
</div>
<!-- Donate card -->
<div class="card donate-card mt-3">
<div class="card-body">
<p class="card-text">Link Cleaner is developed by <a href="https://corbin.io" target="_blank">Corbin Davenport</a>, and all the code is available <a href="https://github.com/corbindavenport/link-cleaner" target="_blank">as open-source</a>. If you want to report a bug or suggest features, please <a href="https://github.com/corbindavenport/link-cleaner/issues/new" target="_blank">create an issue on GitHub</a> or <a href="https://discord.gg/59wfy5cNHw" target="_blank">join the Discord group</a>.</p>
<p class="card-text">If you find Link Cleaner useful, please donate to support continued development. It would mean a lot!</p>
<a href="https://www.patreon.com/corbindavenport" target="_blank">
<button type="button" class="btn btn-success w-100 mb-2">Support via Patreon</button>
</a>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=4SZVSMJKDS35J&lc=US&item_name=Link%20Cleaner%20Donation¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted" target="_blank">
<button type="button" class="btn btn-success w-100 mb-2">Donate via PayPal</button>
</a>
<a href="https://cash.app/$corbdav" target="_blank">
<button type="button" class="btn btn-success w-100">Donate via Cash App</button>
</a>
</div>
</div>
</div>
</div>
</div>
<!-- QR code modal -->
<div class="modal" id="qr-modal">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="qr-modal-label">QR Code</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" style="padding: 0">
<div id="qrcode"></div>
</div>
</div>
</div>
</div>
<!-- Mastodon share modal -->
<div class="modal" tabindex="-1" id="mastodon-modal">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-body">
<div class="mb-3">
<label for="mastodon-server-hostname" class="form-label">Mastodon server</label>
<input type="text" class="form-control" id="mastodon-server-hostname" placeholder="mastodon.social" autocomplete="off" spellcheck="false">
<div class="form-text">This must be a server running <a href="https://joinmastodon.org/" target="_blank">Mastodon</a>, <a href="https://joinfirefish.org/" target="_blank">Firefish/Calckey</a>, <a href="https://join.misskey.page/en-US/" target="_blank">Misskey</a>, or another compatible social media platform.</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="mastodon-share-btn" focus>Continue</button>
</div>
</div>
</div>
</div>
<!-- Clipboard copy toast -->
<div class="toast-container p-1 p-sm-3 position-fixed top-0 start-50 translate-middle-x">
<div class="toast bg-body-secondary text-center rounded-5" role="alert" aria-live="assertive" aria-atomic="true" id="clipboard-toast">
<div class="toast-body">
Copied to clipboard!
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/gh/ushelp/EasyQRCodeJS@4.6.0/dist/easy.qrcode.min.js"></script>
<script src="js/shared.js"></script>
<script src="js/main.js"></script>
<script src="js/register-sw.js"></script>
</body>
</html>