fast72 commited on
Commit
fa9f6c7
·
verified ·
1 Parent(s): 2598acb

Create p/index.html

Browse files
Files changed (1) hide show
  1. p/index.html +128 -0
p/index.html ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Link Bypass</title>
7
+ <style>
8
+ * {
9
+ margin: 0;
10
+ padding: 0;
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ body {
15
+ font-family: 'Arial', sans-serif;
16
+ background-color: #121212;
17
+ color: #fff;
18
+ display: flex;
19
+ justify-content: center;
20
+ align-items: center;
21
+ height: 100vh;
22
+ animation: fadeIn 1s ease-in;
23
+ }
24
+
25
+ .container {
26
+ text-align: center;
27
+ padding: 20px;
28
+ border-radius: 10px;
29
+ background-color: #1a1a1a;
30
+ box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
31
+ }
32
+
33
+ h1 {
34
+ font-size: 2rem;
35
+ margin-bottom: 20px;
36
+ }
37
+
38
+ input {
39
+ padding: 10px;
40
+ font-size: 1rem;
41
+ width: 80%;
42
+ border: none;
43
+ border-radius: 5px;
44
+ margin-bottom: 10px;
45
+ background-color: #333;
46
+ color: #fff;
47
+ }
48
+
49
+ button {
50
+ padding: 10px 20px;
51
+ font-size: 1rem;
52
+ border: none;
53
+ border-radius: 5px;
54
+ background-color: #6200ea;
55
+ color: #fff;
56
+ cursor: pointer;
57
+ transition: background-color 0.3s;
58
+ }
59
+
60
+ button:hover {
61
+ background-color: #3700b3;
62
+ }
63
+
64
+ .result {
65
+ margin-top: 20px;
66
+ text-align: left;
67
+ display: none;
68
+ }
69
+
70
+ @keyframes fadeIn {
71
+ from {
72
+ opacity: 0;
73
+ }
74
+ to {
75
+ opacity: 1;
76
+ }
77
+ }
78
+ </style>
79
+ </head>
80
+ <body>
81
+ <div class="container">
82
+ <h1>Link Bypass</h1>
83
+ <form id="urlForm">
84
+ <input type="text" id="urlInput" placeholder="Enter a link..." />
85
+ <button type="submit">Bypass</button>
86
+ </form>
87
+ <div id="result" class="result"></div>
88
+ </div>
89
+
90
+ <script>
91
+ const form = document.getElementById('urlForm');
92
+ const urlInput = document.getElementById('urlInput');
93
+ const resultDiv = document.getElementById('result');
94
+
95
+ form.addEventListener('submit', async (e) => {
96
+ e.preventDefault();
97
+ const url = urlInput.value;
98
+
99
+ if (!/https:\/\/link2unlock\.com\/[a-zA-Z0-9]+/g.test(url)) {
100
+ resultDiv.innerHTML = `<p style="color: red;">Invalid link</p>`;
101
+ resultDiv.style.display = 'block';
102
+ return;
103
+ }
104
+
105
+ resultDiv.innerHTML = `<p>Loading...</p>`;
106
+ resultDiv.style.display = 'block';
107
+
108
+ try {
109
+ const res = await fetch(`/b?url=${encodeURIComponent(url)}`);
110
+ const data = await res.json();
111
+
112
+ if (data.success === false) {
113
+ resultDiv.innerHTML = `<p style="color: red;">${data.error}</p>`;
114
+ } else {
115
+ const resultHtml = data.map(item => `
116
+ <div>
117
+ <a href="${item.url}" target="_blank">${item.name}</a>
118
+ </div>
119
+ `).join('');
120
+ resultDiv.innerHTML = resultHtml;
121
+ }
122
+ } catch (err) {
123
+ resultDiv.innerHTML = `<p style="color: red;">Something went wrong</p>`;
124
+ }
125
+ });
126
+ </script>
127
+ </body>
128
+ </html>