mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-13 20:10:01 -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");
|
const shimmerEffects = document.querySelectorAll(".box-card");
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* -----------------------------------------------
|
/* -----------------------------------------------
|
||||||
/* Authors: QuiteAFancyEmerald and OlyB
|
/* Authors: QuiteAFancyEmerald, Yoct, and 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
|
||||||
/* Common functions
|
/* MAIN Holy Unblocker LTS Common Script
|
||||||
/* ----------------------------------------------- */
|
/* ----------------------------------------------- */
|
||||||
|
|
||||||
function tryGetElement(id) {
|
function tryGetElement(id) {
|
||||||
|
@ -11,15 +11,16 @@ function tryGetElement(id) {
|
||||||
/**
|
/**
|
||||||
* Get the preferred apex domain name.
|
* Get the preferred apex domain name.
|
||||||
* Not exactly apex, as any subdomain other than those listed will be ignored.
|
* Not exactly apex, as any subdomain other than those listed will be ignored.
|
||||||
*/
|
**/
|
||||||
|
|
||||||
function getDomain() {
|
function getDomain() {
|
||||||
return location.host.replace(/^(www|edu|cooking|beta)\./, "");
|
return location.host.replace(/^(www|edu|cooking|beta)\./, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
// nolag = no external js (arc widget, an-lytics, etc.)
|
/* STEALTH FRAME */
|
||||||
function goFrame(url, nolag) {
|
function goFrame(url) {
|
||||||
localStorage.setItem("huframesrc", url);
|
localStorage.setItem("huframesrc", url);
|
||||||
window.location.href = nolag ? "?s&nolag" : "?s";
|
window.location.href = "?s";
|
||||||
}
|
}
|
||||||
|
|
||||||
function goToUrl(url, stealth, nolag) {
|
function goToUrl(url, stealth, nolag) {
|
||||||
|
@ -30,11 +31,23 @@ function goToUrl(url, stealth, nolag) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* COOKIE AUTH DEMO */
|
||||||
|
|
||||||
function setAuthCookie(s, lax) {
|
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) {
|
function omnibox(url) {
|
||||||
if (url.substring(0, 4) == "http") {
|
if (url.substring(0, 4) == "http") {
|
||||||
|
@ -46,13 +59,13 @@ function omnibox(url) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* To use:
|
function uvUrl(url) {
|
||||||
* goProx.proxy(url-string, stealth-boolean-optional)
|
return (
|
||||||
*
|
location.origin + __uv$config.prefix + __uv$config.encodeUrl(omnibox(url))
|
||||||
* Examples:
|
);
|
||||||
* goProx.corrosion("https://google.com")
|
}
|
||||||
* goProx.womginx("discord.com", true)
|
|
||||||
*/
|
/* RAMMERHEAD CONFIGURATION */
|
||||||
|
|
||||||
function search(input, template) {
|
function search(input, template) {
|
||||||
try {
|
try {
|
||||||
|
@ -180,7 +193,7 @@ async function RammerheadEncode(baseUrl) {
|
||||||
get("/api/shuffleDict?id=" + encodeURIComponent(id), function (res) {
|
get("/api/shuffleDict?id=" + encodeURIComponent(id), function (res) {
|
||||||
callback(JSON.parse(res));
|
callback(JSON.parse(res));
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
var localStorageKey = "rammerhead_sessionids";
|
var localStorageKey = "rammerhead_sessionids";
|
||||||
var localStorageKeyDefault = "rammerhead_default_sessionid";
|
var localStorageKeyDefault = "rammerhead_default_sessionid";
|
||||||
|
@ -213,7 +226,7 @@ async function RammerheadEncode(baseUrl) {
|
||||||
},
|
},
|
||||||
setDefault(id) {
|
setDefault(id) {
|
||||||
localStorage.setItem(localStorageKeyDefault, id);
|
localStorage.setItem(localStorageKeyDefault, id);
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
function addSession(id) {
|
function addSession(id) {
|
||||||
var data = sessionIdsStore.get();
|
var data = sessionIdsStore.get();
|
||||||
|
@ -252,9 +265,13 @@ async function RammerheadEncode(baseUrl) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function uvUrl(url) {
|
/* To use:
|
||||||
return location.origin + __uv$config.prefix + __uv$config.encodeUrl(omnibox(url));
|
* goProx.proxy(url-string, stealth-boolean-optional)
|
||||||
};
|
*
|
||||||
|
* Examples:
|
||||||
|
* goProx.corrosion("https://google.com")
|
||||||
|
* goProx.womginx("discord.com", true)
|
||||||
|
*/
|
||||||
|
|
||||||
window.goProx = {
|
window.goProx = {
|
||||||
// `location.protocol + "//" + getDomain()` more like `location.origin`
|
// `location.protocol + "//" + getDomain()` more like `location.origin`
|
||||||
|
@ -263,7 +280,7 @@ window.goProx = {
|
||||||
goToUrl(uvUrl(url), stealth);
|
goToUrl(uvUrl(url), stealth);
|
||||||
},
|
},
|
||||||
rammerhead: async function (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) {
|
searx: function (stealth) {
|
||||||
goToUrl(location.protocol + "//c." + getDomain() + "/engine/", stealth);
|
goToUrl(location.protocol + "//c." + getDomain() + "/engine/", stealth);
|
||||||
|
@ -272,42 +289,53 @@ window.goProx = {
|
||||||
goToUrl(location.protocol + "//c." + getDomain(), stealth);
|
goToUrl(location.protocol + "//c." + getDomain(), stealth);
|
||||||
},
|
},
|
||||||
rnav: function (stealth) {
|
rnav: function (stealth) {
|
||||||
goToUrl(location.protocol + "//client." + getDomain(), stealth);
|
goToUrl(location.protocol + "//c." + getDomain(), stealth);
|
||||||
},
|
},
|
||||||
osu: function (stealth) {
|
osu: function (stealth) {
|
||||||
goToUrl(location.origin + '/archive/osu', stealth);
|
goToUrl(location.origin + "/archive/osu", stealth);
|
||||||
},
|
},
|
||||||
mcnow: function (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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
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) {
|
village: function (stealth) {
|
||||||
goToUrl(uvUrl('https://kwoodhouse.itch.io/village-arsonist'), stealth);
|
goToUrl(uvUrl("https://kwoodhouse.itch.io/village-arsonist"), stealth);
|
||||||
},
|
},
|
||||||
prison: function (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) {
|
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) {
|
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) {
|
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
|
/* 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
|
/* Settings Menu
|
||||||
/* ----------------------------------------------- */
|
/* ----------------------------------------------- */
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* -----------------------------------------------
|
/* -----------------------------------------------
|
||||||
/* Authors: YÖCTDÖNALD'S, QuiteAFancyEmerald, and OlyB with help from MikeLime
|
/* 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
|
/* Hidden Links
|
||||||
/* ----------------------------------------------- */
|
/* ----------------------------------------------- */
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* -----------------------------------------------
|
/* -----------------------------------------------
|
||||||
/* Authors: OlyB
|
/* 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
|
/* prSet script
|
||||||
/* ----------------------------------------------- */
|
/* ----------------------------------------------- */
|
||||||
|
|
||||||
|
|
|
@ -32,15 +32,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById("frame").src = localStorage.getItem("huframesrc");
|
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>
|
||||||
<script src="assets/js/csel.js"></script>
|
<script src="assets/js/csel.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue