mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-17 05:20:01 -04:00
Alternative Surf Script
This commit is contained in:
parent
e2e01389a5
commit
024e22936c
1 changed files with 208 additions and 0 deletions
208
views/expr/surf-dev.js
Normal file
208
views/expr/surf-dev.js
Normal file
|
@ -0,0 +1,208 @@
|
|||
/* -----------------------------------------------
|
||||
/* Developer version of surf.js
|
||||
/* Mostly just use this for ease when updating official Holy Unblocker sites.
|
||||
/* MIT license: http://opensource.org/licenses/MIT
|
||||
/* How to use? : Check the documentation. Button ID attributes are used for the script below.
|
||||
/* v2.0.5
|
||||
/* ----------------------------------------------- */
|
||||
$ = e => document.getElementById(e) || [];
|
||||
|
||||
//AL
|
||||
$('al').onclick = function() {
|
||||
var frame = document.getElementById("frame");
|
||||
var url = $('url').value;
|
||||
var det = document.domain;
|
||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||
if (!url.startsWith('http') || !url.startsWith('https://')) {
|
||||
url = url.split('/');
|
||||
url = btoa('http://' + url[0] + '/' + url.slice(1).join('/'));
|
||||
console.log(url);
|
||||
} else url = btoa(url)
|
||||
frame.src = "https://cdn." + domain + "/fetch/" + url;
|
||||
frame.style['visibility'] = "visible";
|
||||
frame.setAttribute('allow', 'fullscreen');
|
||||
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
|
||||
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
|
||||
document.getElementById('frame').contentWindow.focus();
|
||||
return false;
|
||||
};
|
||||
$('albp').onclick = function() {
|
||||
var url = $('url').value;
|
||||
var det = document.domain;
|
||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||
if (!url.startsWith('http') || !url.startsWith('https://')) {
|
||||
url = url.split('/');
|
||||
url = btoa('http://' + url[0] + '/' + url.slice(1).join('/'));
|
||||
console.log(url);
|
||||
} else url = btoa(url)
|
||||
window.location.href = "https://cdn." + domain + "/fetch/" + url;
|
||||
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
|
||||
return false;
|
||||
};
|
||||
//NU
|
||||
$('nprox').onclick = function() {
|
||||
var frame = document.getElementById("frame");
|
||||
var url = $('url').value;
|
||||
var det = document.domain;
|
||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||
frame.src = "https://a." + domain + "/call/" + url;
|
||||
frame.style['visibility'] = "visible";
|
||||
frame.setAttribute('allow', 'fullscreen');
|
||||
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
|
||||
document.cookie = 'nu_auth=yes; expires=' + (Date.now() + 259200) + '; SameSite=None; domain=.' + auth + '; path=/; Secure;';
|
||||
return false;
|
||||
};
|
||||
$('nproxbp').onclick = function() {
|
||||
var frame = document.getElementById("frame");
|
||||
var url = $('url').value;
|
||||
var det = document.domain;
|
||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||
window.location.href = "https://a." + domain + "/call/" + url;
|
||||
document.cookie = 'nu_auth=yes; expires=' + (Date.now() + 259200) + '; SameSite=None; domain=.' + auth + '; path=/; Secure;';
|
||||
return false;
|
||||
};
|
||||
//PD
|
||||
$('pdprox').onclick = function() {
|
||||
var frame = document.getElementById("frame");
|
||||
var url = $('url').value;
|
||||
var det = document.domain;
|
||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||
frame.src = "https://cdn." + domain + "/" + url;
|
||||
frame.style['visibility'] = "visible";
|
||||
frame.setAttribute('allow', 'fullscreen');
|
||||
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
|
||||
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
|
||||
return false;
|
||||
};
|
||||
$('pdproxbp').onclick = function() {
|
||||
var url = $('url').value;
|
||||
var det = document.domain;
|
||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||
window.location.href = "https://cdn." + domain + "/" + url;
|
||||
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
|
||||
return false;
|
||||
};
|
||||
//PM Load
|
||||
$('pmprox').onclick = function() {
|
||||
var frame = document.getElementById("frame");
|
||||
var url = $('url').value;
|
||||
var det = document.domain;
|
||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||
if (!url.startsWith('http') || !url.startsWith('https://')) {
|
||||
url = url.split('/');
|
||||
url = ('http://' + url[0] + '/' + url.slice(1).join('/'));
|
||||
}
|
||||
document.getElementById("frame").src = "https://c." + domain + "/prox?url=" + url;
|
||||
frame.style['visibility'] = "visible";
|
||||
frame.setAttribute('allow', 'fullscreen');
|
||||
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
|
||||
document.cookie = 'oldsmobile=1; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
|
||||
document.getElementById("frame").style.visiblity = "visible";
|
||||
return false;
|
||||
};
|
||||
$('pmproxbp').onclick = function() {
|
||||
var url = $('url').value;
|
||||
var det = document.domain;
|
||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||
if (!url.startsWith('http') || !url.startsWith('https://')) {
|
||||
url = url.split('/');
|
||||
url = ('http://' + url[0] + '/' + url.slice(1).join('/'));
|
||||
}
|
||||
window.location.href = "https://c." + domain + "/prox?url=" + url;
|
||||
document.cookie = 'oldsmobile=1; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
|
||||
document.getElementById("frame").style.visiblity = "visible";
|
||||
return false;
|
||||
};
|
||||
//YT
|
||||
$('ytbtn').onclick = function() {
|
||||
var frame = document.getElementById("frame");
|
||||
var yt = `https://youtube.com`;
|
||||
var det = document.domain;
|
||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||
const origin = btoa(yt)
|
||||
frame.src = "https://cdn." + domain + "/fetch/" + origin;
|
||||
frame.style['visibility'] = "visible";
|
||||
frame.setAttribute('allow', 'fullscreen');
|
||||
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
|
||||
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
|
||||
return false;
|
||||
};
|
||||
$('ytbtnm').onclick = function() {
|
||||
var frame = document.getElementById("frame");
|
||||
var yt = `https://m.youtube.com`;
|
||||
var det = document.domain;
|
||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||
const origin = btoa(yt)
|
||||
frame.src = "https://cdn." + domain + "/fetch/" + origin;
|
||||
frame.style['visibility'] = "visible";
|
||||
frame.setAttribute('allow', 'fullscreen');
|
||||
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
|
||||
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
|
||||
return false;
|
||||
};
|
||||
$('ytbp').onclick = function() {
|
||||
var frame = document.getElementById("frame");
|
||||
var yt = `https://youtube.com`;
|
||||
var det = document.domain;
|
||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||
const origin = btoa(yt)
|
||||
window.location.href = "https://cdn." + domain + "/fetch/" + origin;
|
||||
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
|
||||
return false;
|
||||
};
|
||||
//D
|
||||
$('dbtn').onclick = function() {
|
||||
var frame = document.getElementById("frame");
|
||||
var d = `https://discord.com`;
|
||||
var det = document.domain;
|
||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||
const origin = btoa(d)
|
||||
frame.src = "https://cdn." + domain + "/fetch/" + origin + "/login";
|
||||
frame.style['visibility'] = "visible";
|
||||
frame.setAttribute('allow', 'fullscreen');
|
||||
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
|
||||
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
|
||||
return false;
|
||||
};
|
||||
$('docean').onclick = function() {
|
||||
var frame = document.getElementById("frame");
|
||||
var det = document.domain;
|
||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||
frame.src = "https://d." + domain + "/login";
|
||||
frame.style['visibility'] = "visible";
|
||||
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
|
||||
return false;
|
||||
};
|
||||
$('dbp').onclick = function() {
|
||||
var d = `https://discord.com`;
|
||||
var det = document.domain;
|
||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||
const origin = btoa(d)
|
||||
window.location.href = "https://cdn." + domain + "/fetch/" + origin + "/login";
|
||||
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
|
||||
return false;
|
||||
};
|
||||
//CH
|
||||
$('ch').onclick = function() {
|
||||
var frame = document.getElementById("frame");
|
||||
var url = $('url').value;
|
||||
var det = document.domain;
|
||||
var domain = det.replace('www.', '').split(/[/?#]/)[0];
|
||||
frame.src = "https://c." + domain + "/app";
|
||||
frame.style['visibility'] = "visible";
|
||||
frame.setAttribute('allow', 'fullscreen');
|
||||
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
|
||||
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
|
||||
return false;
|
||||
};
|
||||
|
||||
// Cookie Auth
|
||||
var host = location.hostname.split('.');
|
||||
var auth = location.hostname;
|
||||
if (host.length == 3) {
|
||||
auth = `${host[1]}.${host[2]}`;
|
||||
}
|
||||
|
||||
window.onload = function() {
|
||||
$('url').focus();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue