-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
88 lines (86 loc) · 3.39 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
<!doctype html>
<html lang="en">
<head>
<title>
WA Share
</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Easily copy and share WhatsApp messages">
<link rel="icon" href="/logo.png" type="image/png" sizes="508x521">
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
<link rel="manifest" href="/manifest.json">
<script type="text/javascript" src="/util.js">
</script>
</head>
<body>
<!-- README.md -->
<h1
id="-wa-share"><img src="/logo.png" width="40px" style="vertical-align: middle;"/>
WA Share</h1>
<p>A (local) app to copy and share messages from a WhatsApp chat.</p>
<div id="instructions">
<p><em>This is a Progressive Web App (PWA) that process the WhatsApp
chat export data within your browser. The data not sent to the external
server — you could verify this by trying the app in offline
mode.</em></p>
<p><small>The code for this app is on
<a href="https://github.com/punchagan/wa-share">GitHub</a></small>.</p>
<p><strong>NOTE:</strong> Currently, the app is only supported on
<strong>Android</strong> + <strong>Chrome</strong>. Firefox doesn't
support installation of PWAs. Safari supports installation of PWAs, but
iOS doesn't let other apps share content with installed PWAs.</p>
<h2 id="installation--usage">Installation & Usage</h2>
<ol type="1">
<li>Open the site in Chrome</li>
<li>"Install App" from the settings menu</li>
<li>Open the WhatsApp chat from where you want to copy/share texts and
media</li>
<li>Select "Export Chat" from the hamburger menu and select the "WA
Share" app.</li>
<li>In the app page, use filters like the date range, senders or only
messages with links to filter required messages.</li>
<li>Click on "Copy to Clipboard" or "Share" to copy/share the texts and
media</li>
<li>Profit!</li>
</ol>
<details>
<summary>Watch Demo Video</summary>
<iframe width="300" height="800" src="https://www.youtube-nocookie.com/embed/tAKMq4soaJE" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</details>
</div>
<!-- end README.md -->
<p id="alert" style="font-style: italic;"></p>
<p id="share-buttons"></p>
<div id="copy-messages-ui" style="display: none;">
<p>
<label>Start Date</label>
<input id="start-date" type="date" name="start_date">
</p>
<p>
<label>End Date</label>
<input id="end-date" type="date" name="end_date">
</p>
<p>
<label>Include messages from</label>
<select name="sender" id="sender" size="5" multiple></select>
<br>
<a href="#" onclick="toggleSelection()"><small>Toggle select all</small></a>
</p>
<p>
<input type="checkbox" id="links" name="links">
<label for="links">Include only messages with links</label>
</p>
<p>
<label>Message Separator</label>
<input id="separator" type="text" name="separator" value="---">
</p>
<button onclick="copyMessages()">Copy to Clipboard</button>
<button onclick="shareMessages()">Share</button>
<details id="copied" style="display: none;">
<summary>Copied Text</summary>
<p id="copied-text" style="font-style: italic;"></p>
</details>
</div>
</body>
</html>