-
Notifications
You must be signed in to change notification settings - Fork 32
/
index.html
72 lines (64 loc) · 2.52 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>v2rayNG Config - ALIILAPRO</title>
<meta name="keywords" content="programmer, developer, aliilapro, coder, vless, vmess, outline, vpn">
<meta name="description" content="Get new and fast config for bypassing net.">
<meta property="og:title" content="v2rayNG Config">
<meta property="og:type" content="website">
<meta property="og:description" content="Get new and fast config for bypassing net.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- <link rel="icon" type="image/x-icon" href="favicon.ico"> -->
<link rel="stylesheet" href="styles.css">
<title>v2rayNG Config</title>
</head>
<body>
<div class="topnav">
<a class="active" href="#home">Home</a>
<a href="https://t.me/source_pro">Telegram Channel</a>
<a href="https://github.com/ALIILAPRO/v2rayNG-Config">Github repo</a>
<a href="https://github.com/ALIILAPRO/MTProtoProxy">MTProtoProxy</a>
</div>
<h1>v2rayNG Config</h1>
<p>Get new and fast config for bypassing net</p>
<table id="proxy-table">
<tr>
<th>Number</th>
<th>Config</th>
</tr>
</table>
<script>
fetch('server.txt')
.then((response) => response.text())
.then((text) => {
const table = document.getElementById('proxy-table');
const lines = text.split('\n');
lines.forEach((proxyLink, index) => {
if (!proxyLink.trim()) return;
const row = table.insertRow();
const countCell = row.insertCell();
const linkCell = row.insertCell();
countCell.innerText = index + 1;
linkCell.innerHTML = `<div class="link-preview" data-link="${proxyLink}">${proxyLink}</div>`;
});
document.querySelectorAll('.link-preview').forEach((linkPreview) => {
linkPreview.addEventListener('click', () => {
const linkToCopy = linkPreview.getAttribute('data-link');
copyToClipboard(linkToCopy);
});
});
function copyToClipboard(text) {
const textarea = document.createElement('textarea');
textarea.value = text;
document.body.appendChild(textarea);
textarea.select();
document.execCommand('copy');
document.body.removeChild(textarea);
alert(`Copied to clipboard: ${text}`);
}
}).catch((error) => console.error(error));
</script>
</body>
</html>