-
Notifications
You must be signed in to change notification settings - Fork 4
/
bypass-vip.user.js
176 lines (165 loc) · 5.72 KB
/
bypass-vip.user.js
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
// ==UserScript==
// @name BYPASS.VIP BYPASSER
// @namespace bypass.vip
// @version 0.3
// @author bypass.vip
// @description Bypass ad-links using the bypass.vip API and get to your destination without ads!
// @include /^https?:\/\/linkvertise\.com\/\d*\/\S*/
// @include /^https?:\/\/\S*[.]*\/s\?\S*/
// @include /^https?:\/\/\paster[.]so\/\S*/
// @include /^https?:\/\/\boost[.]ink\/\S*/
// @include /^https?:\/\/\mboost[.]me\/\S*/
// @include /^https?:\/\/\bst[.]gg\/\S*/
// @include /^https?:\/\/\booo[.]st\/\S*/
// @include /^https?:\/\/\socialwolvez[.]com\/\S*/
// @include /^https?:\/\/\www[.]sub2get[.]com\/\S*/
// @include /^https?:\/\/\sub2get[.]com\/\S*/
// @include /^https?:\/\/\v[.]gd\/\S*/
// @include /^https?:\/\/\unlocknow[.]net\/\S*/
// @include /^https?:\/\/\sub2unlock[.]com\/\S*/
// @include /^https?:\/\/\sub2unlock[.]net\/\S*/
// @include /^https?:\/\/\sub2unlock[.]io\/\S*/
// @include /^https?:\/\/\sub4unlock[.]io\/\S*/
// @include /^https?:\/\/\rekonise[.]com\/\S*/
// @include /^https?:\/\/\adfoc[.]us\/\S*/
// @include /^https?:\/\/\bstlar[.]com\/\S*/
// @include /^https?:\/\/\work[.]ink\/\S*/
// @include /^https?:\/\/\workink[.]net\/\S*/
// @include /^https?:\/\/\cety[.]app\/\S*/
// @grant GM_addStyle
// @downloadURL https://raw.githubusercontent.com/bypass-vip/userscript/master/bypass-vip.user.js
// @updateURL https://raw.githubusercontent.com/bypass-vip/userscript/master/bypass-vip.user.js
// @homepageURL https://bypass.vip
// @icon https://www.google.com/s2/favicons?domain=bypass.vip&sz=64
// @run-at document-idle
// ==/UserScript==
GM_addStyle(`
.bypass-vip-logo {
width: 48px;
height: 48px;
}
.bypass-vip-toast-container {
font-family: 'Montserrat', sans-serif;
position: fixed;
bottom: 20px;
left: 20px;
max-width: 50%; /* Increase the max-width to provide more space */
max-height: 100%;
background-color: rgba(50, 50, 50, 0.8);
color: white;
backdrop-filter: blur(10px);
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 4px rgba(255, 255, 255, 0.2);
z-index: 2147483648;
}
.bypass-vip-toast-header {
background-color: black;
color: white;
text-align: center;
padding: 10px;
font-weight: bold;
display: flex;
justify-content: space-between;
align-items: center;
}
.bypass-vip-close-button {
background: white;
border: none;
font-size: 1.5rem;
cursor: pointer;
border-radius: 8px;
width: 30px;
height: 30px;
display: flex;
justify-content: center;
align-items: center;
margin-left: 10px;
color: black;
}
.bypass-vip-toast-actions button {
margin-top: 15px;
border: 1px solid rgba(0, 0, 0, 0.1);
cursor: pointer;
border-radius: 8px;
min-width: 25%;
height: auto;
padding: 8px 12px;
background: rgba(255, 255, 255, 0.4);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.bypass-vip-toast-content {
padding: 15px;
overflow-y: auto;
word-wrap: break-word;
max-height: 200px;
text-align: center;
font-size: 16px;
}
.bypass-vip-toast-loader {
width: 48px;
height: 48px;
border: 5px solid #FFF;
border-bottom-color: transparent;
border-radius: 50%;
display: inline-block;
box-sizing: border-box;
animation: rotation 1s linear infinite;
}
@keyframes rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
`);
document.querySelector("body").innerHTML += `
<div class="bypass-vip-toast-container">
<div class="bypass-vip-toast-header">
<img src="https://bypass.vip/assets/img/logo-light-nobg.png" alt="LOGO" class="bypass-vip-logo">
BYPASS.VIP
<button class="bypass-vip-close-button" onclick="this.parentElement.parentElement.remove();">×</button>
</div>
<div class="bypass-vip-toast-content">
<div class="bypass-vip-toast-result"></div>
<div class="bypass-vip-toast-loading">
<span class="bypass-vip-toast-loader"></span>
<p>Loading bypass...</p>
</div>
<div class="bypass-vip-toast-actions" hidden>
<button id="bypass-vip-copy">Copy</button>
<button id="bypass-vip-open" hidden>Open</button>
</div>
</div>
</div>
`;
fetch(`https://api.bypass.vip/bypass?url=${encodeURIComponent(window.location.href)}`)
.then(response => response.json())
.then(data => {
document.querySelector(".bypass-vip-toast-loading").hidden = true;
if (data.status == 'success') {
document.querySelector(".bypass-vip-toast-actions").hidden = false;
document.querySelector(".bypass-vip-toast-result").innerText = data.result;
try {
new URL(data.result);
document.querySelector("#bypass-vip-open").hidden = false;
} catch (e) {}
} else {
document.querySelector(".bypass-vip-toast-result").innerText = data.message;
}
})
.catch(err => {
alert('Error bypassing link! The error has been logged to the console.');
console.error('Fetch Error:', err);
});
document.querySelector("#bypass-vip-copy").addEventListener("click", () => {
navigator.clipboard.writeText(document.querySelector(".bypass-vip-toast-result").innerText)
alert('Content has been copied to your clipboard');
});
document.querySelector("#bypass-vip-open").addEventListener("click", () => {
window.location.href = document.querySelector(".bypass-vip-toast-result").innerText
});