-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
250 lines (213 loc) · 7.28 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<script>
window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
</script>
<script type="text/javascript">
(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "mreoo1c0a1");
</script>
<title>Medium Unlocker</title>
<meta name="description" content="Unlock Medium articles for free using this tool.">
<meta name="keywords" content="medium, unlock, article, free, tool, google webcache?url, inulute medium unlocker, medium unlocker, free medium reader, unlock medium, medium pro, how to read medium membler article">
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
display: flex;
flex-direction: column;
min-height: 100vh;
}
.container {
flex: 1;
max-width: 97%;
margin: 50px auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
text-align: center;
}
h2 {
margin-bottom: 20px;
margin-top: 10px;
color: #333;
}
input[type="text"] {
width: 50%;
padding: 10px;
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
box-sizing: border-box;
transition: border-color 0.3s ease;
}
input[type="text"]:focus {
border-color: #007bff;
}
button {
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
display: inline-block; /* Ensure button remains visible */
transition: background-color 0.3s ease;
}
button:hover {
background-color: #0056b3;
}
#contentContainer {
margin-top: 20px;
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
background-color: #f9f9f9;
text-align: left;
overflow: auto;
}
.disclaimer,
.tool-info {
text-align: left;
margin-top: 20px;
padding: 10px;
border-radius: 5px;
background-color: #ffffff;
}
.disclaimer p,
.tool-info p {
margin: 0;
font-size: 14px; /* Adjust font size as needed */
color: #333; /* Adjust text color as needed */
}
.footer {
position: sticky;
bottom: 0;
text-align: center;
background-color: #616161;
color: #fff;
padding: 0.5rem 0;
}
.footer p {
margin: 0;
}
.footer a {
color: #ffffff;
text-decoration: none;
}
/* Privacy Policy Popup Styles */
.popup {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.4);
}
.popup-content {
background-color: #fff;
margin: 15% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
max-width: 600px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.popup-close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.popup-close:hover,
.popup-close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
/* Media query for responsiveness */
@media only screen and (max-width: 600px) {
.container {
width: 90%;
}
input[type="text"] {
width: 100%;
}
}
</style>
</head>
<body>
<div class="container">
<h2>Medium Unlocker</h2>
<input type="text" id="urlInput" placeholder="Enter URL">
<button onclick="search()">Unlock</button>
<div id="contentContainer">
<!-- Returned content will be displayed here -->
</div>
<div class="disclaimer">
<p>This tool is for educational purposes only. We do not encourage any illegal activities.</p>
</div>
<div class="tool-info">
<p>If you find this tool helpful, please consider <a href="https://donate.inulute.com" style="color: lightblue;">buying me a coffee ☕</a>.</p>
<br>
<p>If you have any suggestions or feedback, please feel free to <a href="https://socials.inulute.com" style="color: lightblue;">contact me</a>.</p>
<br>
<p>Please note that this tool uses Google Webcache to display Medium articles, so it may not always reflect the most up-to-date content.</p>
</div>
</div>
<footer class="footer">
<p style="font-size: small;">Made with ❤️ by <a href="https://socials.inulute.com" style="color: lightblue;">inulute</a></p>
------------------
<p style="font-size: small;"><a href="#" style="color: lightblue;" onclick="openPrivacyPolicy()">Privacy Policy</a></p>
</footer>
<!-- Privacy Policy Popup -->
<div id="privacyPolicyPopup" class="popup">
<div class="popup-content">
<span class="popup-close" onclick="closePrivacyPolicy()">×</span>
<h2>Privacy Policy</h2>
<h3>Effective Date: 13 June 2024</h3>
<p>Hey there! Just a quick heads-up about our privacy policy. We want to know how many awesome people visit our site, but our free Vercel analytics limit ran out, and we didn't feel like paying $20 for an upgrade. So, we're using Microsoft Clarity to get some basic visitor insights instead. :( </p>
<p>If you're curious about how Microsoft handles your data, check out their <a href="https://privacy.microsoft.com/en-us/privacystatement" target="_blank" style="color: lightblue;">Privacy Statement</a>.</p>
</div>
</div>
<script>
function openPrivacyPolicy() {
document.getElementById('privacyPolicyPopup').style.display = 'block';
}
function closePrivacyPolicy() {
document.getElementById('privacyPolicyPopup').style.display = 'none';
}
async function search() {
const inputUrl = document.getElementById("urlInput").value.trim();
if (!inputUrl) {
alert("Please enter a valid URL.");
return;
}
try {
const response = await fetch(`/api/webcache?url=${inputUrl}`);
const html = await response.text();
document.getElementById("contentContainer").innerHTML = html;
} catch (error) {
console.error('Error fetching data:', error);
document.getElementById("contentContainer").innerHTML = "<p>Error fetching content. Please try again later.</p>";
}
}
</script>
</body>
</html>