mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-13 12:00:02 -04:00
Cleanup
This commit is contained in:
parent
2455cdcd2f
commit
d359819ba3
6 changed files with 317 additions and 292 deletions
|
@ -1,3 +1,9 @@
|
|||
/* -----------------------------------------------
|
||||
/* Authors: QuiteAFancyEmerald
|
||||
/* GNU Affero General Public License v3.0: https://www.gnu.org/licenses/agpl-3.0.en.html
|
||||
/* Card Shimmer Mouse Follow Script
|
||||
/* ----------------------------------------------- */
|
||||
|
||||
const shimmerEffects = document.querySelectorAll(".box-card");
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* -----------------------------------------------
|
||||
/* Authors: QuiteAFancyEmerald and OlyB
|
||||
/* MIT license: http://opensource.org/licenses/MIT
|
||||
/* Common functions
|
||||
/* Authors: QuiteAFancyEmerald, Yoct, and OlyB
|
||||
/* GNU Affero General Public License v3.0: https://www.gnu.org/licenses/agpl-3.0.en.html
|
||||
/* MAIN Holy Unblocker LTS Common Script
|
||||
/* ----------------------------------------------- */
|
||||
|
||||
function tryGetElement(id) {
|
||||
|
@ -11,15 +11,16 @@ function tryGetElement(id) {
|
|||
/**
|
||||
* Get the preferred apex domain name.
|
||||
* Not exactly apex, as any subdomain other than those listed will be ignored.
|
||||
*/
|
||||
**/
|
||||
|
||||
function getDomain() {
|
||||
return location.host.replace(/^(www|edu|cooking|beta)\./, "");
|
||||
}
|
||||
|
||||
// nolag = no external js (arc widget, an-lytics, etc.)
|
||||
function goFrame(url, nolag) {
|
||||
/* STEALTH FRAME */
|
||||
function goFrame(url) {
|
||||
localStorage.setItem("huframesrc", url);
|
||||
window.location.href = nolag ? "?s&nolag" : "?s";
|
||||
window.location.href = "?s";
|
||||
}
|
||||
|
||||
function goToUrl(url, stealth, nolag) {
|
||||
|
@ -30,11 +31,23 @@ function goToUrl(url, stealth, nolag) {
|
|||
}
|
||||
}
|
||||
|
||||
/* COOKIE AUTH DEMO */
|
||||
|
||||
function setAuthCookie(s, lax) {
|
||||
document.cookie = s + "; expires=" + (Date.now() + 259200) + "; SameSite=" + (lax ? "Lax" : "None") + "; domain=." + getDomain() + "; path=/; Secure;";
|
||||
document.cookie =
|
||||
s +
|
||||
"; expires=" +
|
||||
(Date.now() + 259200) +
|
||||
"; SameSite=" +
|
||||
(lax ? "Lax" : "None") +
|
||||
"; domain=." +
|
||||
getDomain() +
|
||||
"; path=/; Secure;";
|
||||
}
|
||||
|
||||
const sx = 'bing.com' + '/search?q=';
|
||||
/* OMNIBOX */
|
||||
|
||||
const sx = "bing.com" + "/search?q=";
|
||||
|
||||
function omnibox(url) {
|
||||
if (url.substring(0, 4) == "http") {
|
||||
|
@ -46,13 +59,13 @@ function omnibox(url) {
|
|||
}
|
||||
}
|
||||
|
||||
/* To use:
|
||||
* goProx.proxy(url-string, stealth-boolean-optional)
|
||||
*
|
||||
* Examples:
|
||||
* goProx.corrosion("https://google.com")
|
||||
* goProx.womginx("discord.com", true)
|
||||
*/
|
||||
function uvUrl(url) {
|
||||
return (
|
||||
location.origin + __uv$config.prefix + __uv$config.encodeUrl(omnibox(url))
|
||||
);
|
||||
}
|
||||
|
||||
/* RAMMERHEAD CONFIGURATION */
|
||||
|
||||
function search(input, template) {
|
||||
try {
|
||||
|
@ -180,7 +193,7 @@ async function RammerheadEncode(baseUrl) {
|
|||
get("/api/shuffleDict?id=" + encodeURIComponent(id), function (res) {
|
||||
callback(JSON.parse(res));
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
var localStorageKey = "rammerhead_sessionids";
|
||||
var localStorageKeyDefault = "rammerhead_default_sessionid";
|
||||
|
@ -213,7 +226,7 @@ async function RammerheadEncode(baseUrl) {
|
|||
},
|
||||
setDefault(id) {
|
||||
localStorage.setItem(localStorageKeyDefault, id);
|
||||
}
|
||||
},
|
||||
};
|
||||
function addSession(id) {
|
||||
var data = sessionIdsStore.get();
|
||||
|
@ -252,9 +265,13 @@ async function RammerheadEncode(baseUrl) {
|
|||
});
|
||||
}
|
||||
|
||||
function uvUrl(url) {
|
||||
return location.origin + __uv$config.prefix + __uv$config.encodeUrl(omnibox(url));
|
||||
};
|
||||
/* To use:
|
||||
* goProx.proxy(url-string, stealth-boolean-optional)
|
||||
*
|
||||
* Examples:
|
||||
* goProx.corrosion("https://google.com")
|
||||
* goProx.womginx("discord.com", true)
|
||||
*/
|
||||
|
||||
window.goProx = {
|
||||
// `location.protocol + "//" + getDomain()` more like `location.origin`
|
||||
|
@ -263,7 +280,7 @@ window.goProx = {
|
|||
goToUrl(uvUrl(url), stealth);
|
||||
},
|
||||
rammerhead: async function (url, stealth) {
|
||||
goToUrl(location.origin + await RammerheadEncode(omnibox(url)), stealth);
|
||||
goToUrl(location.origin + (await RammerheadEncode(omnibox(url))), stealth);
|
||||
},
|
||||
searx: function (stealth) {
|
||||
goToUrl(location.protocol + "//c." + getDomain() + "/engine/", stealth);
|
||||
|
@ -272,42 +289,53 @@ window.goProx = {
|
|||
goToUrl(location.protocol + "//c." + getDomain(), stealth);
|
||||
},
|
||||
rnav: function (stealth) {
|
||||
goToUrl(location.protocol + "//client." + getDomain(), stealth);
|
||||
goToUrl(location.protocol + "//c." + getDomain(), stealth);
|
||||
},
|
||||
osu: function (stealth) {
|
||||
goToUrl(location.origin + '/archive/osu', stealth);
|
||||
goToUrl(location.origin + "/archive/osu", stealth);
|
||||
},
|
||||
mcnow: function (stealth) {
|
||||
goToUrl(uvUrl('https://now.gg/play/a/10010/b'), stealth);
|
||||
goToUrl(uvUrl("https://now.gg/play/a/10010/b"), stealth);
|
||||
},
|
||||
glife: function (stealth) {
|
||||
goToUrl(uvUrl('https://now.gg/apps/lunime/5767/gacha-life.html'), stealth);
|
||||
goToUrl(uvUrl("https://now.gg/apps/lunime/5767/gacha-life.html"), stealth);
|
||||
},
|
||||
roblox: function (stealth) {
|
||||
goToUrl(uvUrl('https://now.gg/apps/roblox-corporation/5349/roblox.html'), stealth);
|
||||
goToUrl(
|
||||
uvUrl("https://now.gg/apps/roblox-corporation/5349/roblox.html"),
|
||||
stealth
|
||||
);
|
||||
},
|
||||
amongus: function (stealth) {
|
||||
goToUrl(uvUrl('https://now.gg/apps/innersloth-llc/4047/among-us.html'), stealth);
|
||||
goToUrl(
|
||||
uvUrl("https://now.gg/apps/innersloth-llc/4047/among-us.html"),
|
||||
stealth
|
||||
);
|
||||
},
|
||||
pubg: function (stealth) {
|
||||
goToUrl(uvUrl('https://now.gg/apps/proxima-beta/2609/pubg-mobile-resistance.html'), stealth);
|
||||
goToUrl(
|
||||
uvUrl(
|
||||
"https://now.gg/apps/proxima-beta/2609/pubg-mobile-resistance.html"
|
||||
),
|
||||
stealth
|
||||
);
|
||||
},
|
||||
train: function (stealth) {
|
||||
goToUrl(uvUrl('https://hby.itch.io/last-train-home'), stealth);
|
||||
goToUrl(uvUrl("https://hby.itch.io/last-train-home"), stealth);
|
||||
},
|
||||
village: function (stealth) {
|
||||
goToUrl(uvUrl('https://kwoodhouse.itch.io/village-arsonist'), stealth);
|
||||
goToUrl(uvUrl("https://kwoodhouse.itch.io/village-arsonist"), stealth);
|
||||
},
|
||||
prison: function (stealth) {
|
||||
goToUrl(uvUrl('https://vimlark.itch.io/pick-up-prison'), stealth);
|
||||
goToUrl(uvUrl("https://vimlark.itch.io/pick-up-prison"), stealth);
|
||||
},
|
||||
rpg: function (stealth) {
|
||||
goToUrl(uvUrl('https://alarts.itch.io/die-in-the-dungeon'), stealth);
|
||||
goToUrl(uvUrl("https://alarts.itch.io/die-in-the-dungeon"), stealth);
|
||||
},
|
||||
speed: function (stealth) {
|
||||
goToUrl(uvUrl('https://captain4lk.itch.io/what-the-road-brings'), stealth);
|
||||
goToUrl(uvUrl("https://captain4lk.itch.io/what-the-road-brings"), stealth);
|
||||
},
|
||||
heli: function (stealth) {
|
||||
goToUrl(uvUrl('https://benjames171.itch.io/helo-storm'), stealth);
|
||||
}
|
||||
goToUrl(uvUrl("https://benjames171.itch.io/helo-storm"), stealth);
|
||||
},
|
||||
};
|
|
@ -1,6 +1,6 @@
|
|||
/* -----------------------------------------------
|
||||
/* Authors: OlyB
|
||||
/* MIT license: http://opensource.org/licenses/MIT
|
||||
/* GNU Affero General Public License v3.0: https://www.gnu.org/licenses/agpl-3.0.en.html
|
||||
/* Settings Menu
|
||||
/* ----------------------------------------------- */
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -----------------------------------------------
|
||||
/* Authors: YÖCTDÖNALD'S, QuiteAFancyEmerald, and OlyB with help from MikeLime
|
||||
/* MIT license: http://opensource.org/licenses/MIT
|
||||
/* GNU Affero General Public License v3.0: https://www.gnu.org/licenses/agpl-3.0.en.html
|
||||
/* Hidden Links
|
||||
/* ----------------------------------------------- */
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -----------------------------------------------
|
||||
/* Authors: OlyB
|
||||
/* MIT license: http://opensource.org/licenses/MIT
|
||||
/* GNU Affero General Public License v3.0: https://www.gnu.org/licenses/agpl-3.0.en.html
|
||||
/* prSet script
|
||||
/* ----------------------------------------------- */
|
||||
|
||||
|
|
|
@ -32,15 +32,6 @@
|
|||
}
|
||||
|
||||
document.getElementById("frame").src = localStorage.getItem("huframesrc");
|
||||
|
||||
// make arc widget if nolag isn't specified
|
||||
/*if (!queries.hasOwnProperty("nolag")) {
|
||||
var arcw = document.createElement("script");
|
||||
arcw.setAttribute("async", "");
|
||||
arcw.src = "https://arc.io/widget.min.js#2BzvQ1em";
|
||||
document.head.appendChild(arcw);
|
||||
}
|
||||
*/
|
||||
</script>
|
||||
<script src="assets/js/csel.js"></script>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue