Add files via upload
This commit is contained in:
commit
e8583cc4d9
15 changed files with 619 additions and 0 deletions
BIN
apple-touch-icon.png
Normal file
BIN
apple-touch-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
BIN
favicon.png
Normal file
BIN
favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.3 KiB |
1
favorites.js
Normal file
1
favorites.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
// MAYBE COMING SOON IF I ACTUALLY LEARN STATE MANAGEMENT D:
|
||||
8
header.js
Normal file
8
header.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
function openNav() {
|
||||
document.getElementById("sidenav").style.width = "300px";
|
||||
}
|
||||
|
||||
/* Set the width of the side navigation to 0 */
|
||||
function closeNav() {
|
||||
document.getElementById("sidenav").style.width = "0%";
|
||||
}
|
||||
117
index.html
Normal file
117
index.html
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<script src="./js/themes/loadIndex.js"></script>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="theme-color" content="#81A1C1">
|
||||
<title>Alu's Unblocker</title>
|
||||
<link rel="stylesheet" href="./vendor/aos/aos.css" />
|
||||
<link rel="icon" href="./img/icon.svg">
|
||||
<link rel="apple-touch-icon" href="./apple-touch-icon.png"/>
|
||||
<link rel="manifest" href="/manifest.json">
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
window.addEventListener('load', () => {
|
||||
navigator.serviceWorker.register('/pwabuilder-sw.js').then((reg) => {
|
||||
console.log('Service worker registered.', reg);
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<script src="./loadScript.js"></script>
|
||||
<script>
|
||||
if ( window.location !== window.parent.location ) { // In a frame
|
||||
loadJS("./settings_frame.js", false)
|
||||
} else { // Not in a frame
|
||||
if (localStorage.getItem('windowCloak') == "1") { // Setting "windowCloak" is enabled
|
||||
var x = window.open('')
|
||||
x.document.write('<iframe src="https://alusunblocker.gq" style="position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%;"></iframe>');
|
||||
x.document.write('<script src="./settings_frame.js">')
|
||||
window.location.href = "https://google.com"
|
||||
} else { // Setting "windowCloak" is not enabled
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body id="body">
|
||||
<script src="./vendor/aos/aos.js"></script>
|
||||
<script src="./toggles.js"></script>
|
||||
<script src="./main.js"></script> <!--header moment-->
|
||||
<script src="./header.js"></script>
|
||||
<script src="./themes.js"></script>
|
||||
<div id="main">
|
||||
<div class="top-header" data-aos="fade-down" data-aos-duration="1000">
|
||||
<div id="title-background" class="title-background"><a id="nav-toggle" class="mobile-toggle" onclick="openNav()"><svg class="menu-bar" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M0 96C0 78.33 14.33 64 32 64H416C433.7 64 448 78.33 448 96C448 113.7 433.7 128 416 128H32C14.33 128 0 113.7 0 96zM0 256C0 238.3 14.33 224 32 224H416C433.7 224 448 238.3 448 256C448 273.7 433.7 288 416 288H32C14.33 288 0 273.7 0 256zM416 448H32C14.33 448 0 433.7 0 416C0 398.3 14.33 384 32 384H416C433.7 384 448 398.3 448 416C448 433.7 433.7 448 416 448z"/></svg></a></div>
|
||||
</div>
|
||||
<div id="sidenav" class="sidenav">
|
||||
<a class="closebtn" onclick="closeNav()">×</a>
|
||||
<br>
|
||||
<a href="/" class="mobile-nav-header-item"><svg xmlns="http://www.w3.org/2000/svg" class="header-icon" viewBox="0 0 576 512"><path d="M575.8 255.5C575.8 273.5 560.8 287.6 543.8 287.6H511.8L512.5 447.7C512.5 450.5 512.3 453.1 512 455.8V472C512 494.1 494.1 512 472 512H456C454.9 512 453.8 511.1 452.7 511.9C451.3 511.1 449.9 512 448.5 512H392C369.9 512 352 494.1 352 472V384C352 366.3 337.7 352 320 352H256C238.3 352 224 366.3 224 384V472C224 494.1 206.1 512 184 512H128.1C126.6 512 125.1 511.9 123.6 511.8C122.4 511.9 121.2 512 120 512H104C81.91 512 64 494.1 64 472V360C64 359.1 64.03 358.1 64.09 357.2V287.6H32.05C14.02 287.6 0 273.5 0 255.5C0 246.5 3.004 238.5 10.01 231.5L266.4 8.016C273.4 1.002 281.4 0 288.4 0C295.4 0 303.4 2.004 309.5 7.014L564.8 231.5C572.8 238.5 576.9 246.5 575.8 255.5L575.8 255.5z"/></svg> Home</a>
|
||||
<a href="/proxies" class="mobile-nav-header-item"><svg xmlns="http://www.w3.org/2000/svg" class="header-icon" viewBox="0 0 512 512"><path d="M432 64H208C199.2 64 192 71.16 192 80V96H128V80C128 35.82 163.8 0 208 0H432C476.2 0 512 35.82 512 80V304C512 348.2 476.2 384 432 384H416V320H432C440.8 320 448 312.8 448 304V80C448 71.16 440.8 64 432 64zM0 192C0 156.7 28.65 128 64 128H320C355.3 128 384 156.7 384 192V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V192zM96 256H288C305.7 256 320 241.7 320 224C320 206.3 305.7 192 288 192H96C78.33 192 64 206.3 64 224C64 241.7 78.33 256 96 256z"/></svg> Proxies</a>
|
||||
<a href="/games" class="mobile-nav-header-item"><svg xmlns="http://www.w3.org/2000/svg" class="header-icon" viewBox="0 0 640 512"><path d="M448 64H192C85.96 64 0 149.1 0 256s85.96 192 192 192h256c106 0 192-85.96 192-192S554 64 448 64zM247.1 280h-32v32c0 13.2-10.78 24-23.98 24c-13.2 0-24.02-10.8-24.02-24v-32L136 279.1C122.8 279.1 111.1 269.2 111.1 256c0-13.2 10.85-24.01 24.05-24.01L167.1 232v-32c0-13.2 10.82-24 24.02-24c13.2 0 23.98 10.8 23.98 24v32h32c13.2 0 24.02 10.8 24.02 24C271.1 269.2 261.2 280 247.1 280zM431.1 344c-22.12 0-39.1-17.87-39.1-39.1s17.87-40 39.1-40s39.1 17.88 39.1 40S454.1 344 431.1 344zM495.1 248c-22.12 0-39.1-17.87-39.1-39.1s17.87-40 39.1-40c22.12 0 39.1 17.88 39.1 40S518.1 248 495.1 248z"/></svg> Games</a>
|
||||
<div class="divider"></div>
|
||||
<a href="/bookmarklets" class="mobile-nav-header-item"><svg xmlns="http://www.w3.org/2000/svg" class="header-icon-sm" viewBox="0 0 384 512"><path d="M384 48V512l-192-112L0 512V48C0 21.5 21.5 0 48 0h288C362.5 0 384 21.5 384 48z"/></svg> Bookmarklets</a>
|
||||
<a href="/settings" class="mobile-nav-header-item"><svg xmlns="http://www.w3.org/2000/svg" class="header-icon" viewBox="0 0 512 512"><path d="M495.9 166.6C499.2 175.2 496.4 184.9 489.6 191.2L446.3 230.6C447.4 238.9 448 247.4 448 256C448 264.6 447.4 273.1 446.3 281.4L489.6 320.8C496.4 327.1 499.2 336.8 495.9 345.4C491.5 357.3 486.2 368.8 480.2 379.7L475.5 387.8C468.9 398.8 461.5 409.2 453.4 419.1C447.4 426.2 437.7 428.7 428.9 425.9L373.2 408.1C359.8 418.4 344.1 427 329.2 433.6L316.7 490.7C314.7 499.7 307.7 506.1 298.5 508.5C284.7 510.8 270.5 512 255.1 512C241.5 512 227.3 510.8 213.5 508.5C204.3 506.1 197.3 499.7 195.3 490.7L182.8 433.6C167 427 152.2 418.4 138.8 408.1L83.14 425.9C74.3 428.7 64.55 426.2 58.63 419.1C50.52 409.2 43.12 398.8 36.52 387.8L31.84 379.7C25.77 368.8 20.49 357.3 16.06 345.4C12.82 336.8 15.55 327.1 22.41 320.8L65.67 281.4C64.57 273.1 64 264.6 64 256C64 247.4 64.57 238.9 65.67 230.6L22.41 191.2C15.55 184.9 12.82 175.3 16.06 166.6C20.49 154.7 25.78 143.2 31.84 132.3L36.51 124.2C43.12 113.2 50.52 102.8 58.63 92.95C64.55 85.8 74.3 83.32 83.14 86.14L138.8 103.9C152.2 93.56 167 84.96 182.8 78.43L195.3 21.33C197.3 12.25 204.3 5.04 213.5 3.51C227.3 1.201 241.5 0 256 0C270.5 0 284.7 1.201 298.5 3.51C307.7 5.04 314.7 12.25 316.7 21.33L329.2 78.43C344.1 84.96 359.8 93.56 373.2 103.9L428.9 86.14C437.7 83.32 447.4 85.8 453.4 92.95C461.5 102.8 468.9 113.2 475.5 124.2L480.2 132.3C486.2 143.2 491.5 154.7 495.9 166.6V166.6zM256 336C300.2 336 336 300.2 336 255.1C336 211.8 300.2 175.1 256 175.1C211.8 175.1 176 211.8 176 255.1C176 300.2 211.8 336 256 336z"/></svg> Settings</a>
|
||||
<div class="divider"></div>
|
||||
<a href="./credits" class="mobile-nav-header-item"><svg xmlns="http://www.w3.org/2000/svg" class="header-icon-sm" viewBox="0 0 448 512"><path d="M256 96H32C14.33 96 0 81.67 0 64C0 46.33 14.33 32 32 32H256C273.7 32 288 46.33 288 64C288 81.67 273.7 96 256 96zM256 352H32C14.33 352 0 337.7 0 320C0 302.3 14.33 288 32 288H256C273.7 288 288 302.3 288 320C288 337.7 273.7 352 256 352zM0 192C0 174.3 14.33 160 32 160H416C433.7 160 448 174.3 448 192C448 209.7 433.7 224 416 224H32C14.33 224 0 209.7 0 192zM416 480H32C14.33 480 0 465.7 0 448C0 430.3 14.33 416 32 416H416C433.7 416 448 430.3 448 448C448 465.7 433.7 480 416 480z"/></svg> Credits</a>
|
||||
<a href="./docs.html" class="mobile-nav-header-item"><svg xmlns="http://www.w3.org/2000/svg" class="header-icon-sm" viewBox="0 0 448 512"><path d="M448 336v-288C448 21.49 426.5 0 400 0H352v191.1c0 13.41-15.52 20.88-25.1 12.49L272 160L217.1 204.5C207.5 212.8 192 205.4 192 191.1V0H96C42.98 0 0 42.98 0 96v320c0 53.02 42.98 96 96 96h320c17.67 0 32-14.33 32-32c0-11.72-6.607-21.52-16-27.1v-81.36C441.8 362.8 448 350.2 448 336zM384 448H96c-17.67 0-32-14.33-32-32c0-17.67 14.33-32 32-32h288V448z"/></svg> Docs</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main-content">
|
||||
<h1 id="title-text" class="title-text fade-in">Alu's<br>Unblocker</h1>
|
||||
<h4 id="subtitle-text" class="subtitle-text fade-in">Alu's Unblocker is an advanced proxy service that features many different forms of exploits and services for use in the classroom.</h4>
|
||||
<a id="proxies-button" class="proxies-button" href="./proxies">Proxies</a>
|
||||
</div>
|
||||
<div class="mid-content">
|
||||
<div id="card" class="card">
|
||||
<h1 class="mid-content-title">Alu's Unblocker is an advanced proxy service that offers high reliability and low block rates</h1>
|
||||
<div class="gap"></div>
|
||||
<p class="middle-content">Alu's Unblocker has a wide variety of blockers and other services that are used to make school devices more versatile and overall more useful.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="get-involved">
|
||||
<h1 id="gi-title" class="gi-title">How you can contribute to Alu.</h1>
|
||||
</div>
|
||||
<div id="gi-card" class="gi-card">
|
||||
<div class="donate">
|
||||
<h3>You can support development of Alu by subscribing to my patreon or by donating money to my paypal!</h3>
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<a href="#" class="donate-button"><svg class="btn-icn" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M111.4 295.9c-3.5 19.2-17.4 108.7-21.5 134-.3 1.8-1 2.5-3 2.5H12.3c-7.6 0-13.1-6.6-12.1-13.9L58.8 46.6c1.5-9.6 10.1-16.9 20-16.9 152.3 0 165.1-3.7 204 11.4 60.1 23.3 65.6 79.5 44 140.3-21.5 62.6-72.5 89.5-140.1 90.3-43.4.7-69.5-7-75.3 24.2zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6z"/></svg></a>
|
||||
<a href="#" class="donate-button"><svg class="btn-icn patreon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M512 194.8c0 101.3-82.4 183.8-183.8 183.8-101.7 0-184.4-82.4-184.4-183.8 0-101.6 82.7-184.3 184.4-184.3C429.6 10.5 512 93.2 512 194.8zM0 501.5h90v-491H0v491z"/></svg></a>
|
||||
</div>
|
||||
<br>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<div class="footerflex">
|
||||
<div class="footerbrand">
|
||||
<h3><a href="/">Alu's Unblocker</a></h3>
|
||||
<p>Made with ❤️ by <a href="#">wearr</a></p>
|
||||
</div>
|
||||
<div class="footerlist">
|
||||
<h3>Services</h3>
|
||||
<ul>
|
||||
<li><a target="_blank" href="https://github.com/titaniumnetwork-dev/Ultraviolet">Ultraviolet</a></li>
|
||||
<li><a target="_blank" href="https://github.com/binary-person/rammerhead">Rammerhead</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footerlist">
|
||||
<h3>Socials</h3>
|
||||
<ul>
|
||||
<li><a target="_blank" href="https://github.com/titaniumnetwork-dev/Holy-Unblocker">GitHub</a></li>
|
||||
<li><a href="/terms.html">Instagram</a></li>
|
||||
<div class="tooltip">
|
||||
<span class="tooltiptext" id="myTooltip">Copy</span>
|
||||
<li><a onclick="copyDiscord();" onmouseout="outFunc();" class="discord-text">Discord</a></li>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<p class="copyright">Alu's Unblocker © 2022</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
20
loadScript.js
Normal file
20
loadScript.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
// loadJS("FILE_PATH_HERE", true/false for async)
|
||||
// EX. loadJS("./main.js", true) loads main.js as async!
|
||||
function loadJS(FILE_URL, async = true) {
|
||||
let scriptEle = document.createElement("script");
|
||||
|
||||
scriptEle.setAttribute("src", FILE_URL);
|
||||
scriptEle.setAttribute("type", "text/javascript");
|
||||
scriptEle.setAttribute("async", async);
|
||||
|
||||
document.body.appendChild(scriptEle);
|
||||
|
||||
// success event
|
||||
scriptEle.addEventListener("load", () => {
|
||||
console.log("File Load Success!")
|
||||
});
|
||||
// error event
|
||||
scriptEle.addEventListener("error", (ev) => {
|
||||
console.log("File Load Fail. Error:", ev);
|
||||
});
|
||||
}
|
||||
59
main.js
Normal file
59
main.js
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
AOS.init();
|
||||
window.onload = (event) => {
|
||||
if (typeof localStorage !== 'undefined') {
|
||||
var firstTime = localStorage.getItem("first_time");
|
||||
if(!firstTime) {
|
||||
// first time loaded!
|
||||
resetCloaks();
|
||||
localStorage.setItem("first_time","1");
|
||||
console.log("first time loaded!")
|
||||
localStorage.setItem("cloakActive", 0)
|
||||
}
|
||||
if (localStorage.getItem("cloakActive") == 0) {
|
||||
if (localStorage.getItem("tabName") != null) {
|
||||
localStorage.setItem("tabName", document.getElementsByTagName("title")[0].text)
|
||||
localStorage.setItem("tabIcon", "./img/icon.svg")
|
||||
} else {
|
||||
document.title = "Alu's Unblocker"
|
||||
}
|
||||
} else {
|
||||
console.log("cloaking is enabled!")
|
||||
document.querySelector("link[rel*='icon']").href = localStorage.getItem('tabIcon');
|
||||
document.title = localStorage.getItem('tabName')
|
||||
}
|
||||
|
||||
if (localStorage.getItem("footerHidden") == 'true') {
|
||||
hideFooter();
|
||||
}
|
||||
} else {
|
||||
console.log('no localstorage API exists!')
|
||||
}
|
||||
}
|
||||
// Smaller Screen Navigation ( Less than 1080p :D )
|
||||
function showMobileNav() {
|
||||
setTimeout(() => {
|
||||
document.getElementById('mobile-header').style.maxHeight = "40vh";
|
||||
document.getElementById('nav-icon').style.display = "none"
|
||||
document.getElementById('mobile-header').style.transition = "max-height 350ms ease-in"
|
||||
}, 400);
|
||||
document.getElementById('nav-toggle').style.marginRight = "-50%"
|
||||
document.getElementById('nav-toggle-disable').style.display = "flex"
|
||||
document.getElementById('nav-toggle-disable').style.top = "3%"
|
||||
}
|
||||
function hideMobileNav() {
|
||||
document.getElementById('mobile-header').style.maxHeight = "0vh";
|
||||
document.getElementById('nav-toggle-disable').style.top = "-10%"
|
||||
document.getElementById('nav-toggle').style.marginRight = "0.1%"
|
||||
setTimeout(() => {
|
||||
document.getElementById('nav-icon').style.display = "flex"
|
||||
}, 400);
|
||||
}
|
||||
function copyDiscord() {
|
||||
var tooltip = document.getElementById("myTooltip")
|
||||
navigator.clipboard.writeText("wearr#4222");
|
||||
tooltip.innerHTML = "Copied!"
|
||||
}
|
||||
function outFunc() {
|
||||
var tooltip = document.getElementById("myTooltip");
|
||||
tooltip.innerHTML = "Copy";
|
||||
}
|
||||
17
manifest.json
Normal file
17
manifest.json
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"lang": "en",
|
||||
"dir": "ltr",
|
||||
"name": "Alu's Unblocker",
|
||||
"short_name": "Alu's UB",
|
||||
"description": "Access your favorite websites from anywhere",
|
||||
"icons": [{
|
||||
"src": "/favicon.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "any maskable"
|
||||
}],
|
||||
"start_url": "/",
|
||||
"display": "standalone",
|
||||
"theme_color": "#81A1C1",
|
||||
"background_color": "#ffffff"
|
||||
}
|
||||
15
pwabuilder-sw-register.js
Normal file
15
pwabuilder-sw-register.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
// This is the service worker with the Advanced caching
|
||||
|
||||
// Add this below content to your HTML page inside a <script type="module"></script> tag, or add the js file to your page at the very top to register service worker
|
||||
// If you get an error about not being able to import, double check that you have type="module" on your <script /> tag
|
||||
|
||||
/*
|
||||
This code uses the pwa-update web component https://github.com/pwa-builder/pwa-update to register your service worker,
|
||||
tell the user when there is an update available and let the user know when your PWA is ready to use offline.
|
||||
*/
|
||||
if( 'undefined' === typeof window){
|
||||
importScripts('./pwaupdate.js');
|
||||
|
||||
const el = document.createElement('pwa-update');
|
||||
document.body.appendChild(el);
|
||||
}
|
||||
75
pwabuilder-sw.js
Normal file
75
pwabuilder-sw.js
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
//This is the service worker with the Advanced caching
|
||||
|
||||
importScripts('https://storage.googleapis.com/workbox-cdn/releases/5.1.2/workbox-sw.js');
|
||||
|
||||
const HTML_CACHE = "html";
|
||||
const JS_CACHE = "javascript";
|
||||
const STYLE_CACHE = "stylesheets";
|
||||
const IMAGE_CACHE = "images";
|
||||
const FONT_CACHE = "fonts";
|
||||
|
||||
self.addEventListener("message", (event) => {
|
||||
if (event.data && event.data.type === "SKIP_WAITING") {
|
||||
self.skipWaiting();
|
||||
}
|
||||
});
|
||||
|
||||
workbox.routing.registerRoute(
|
||||
({event}) => event.request.destination === 'document',
|
||||
new workbox.strategies.NetworkFirst({
|
||||
cacheName: HTML_CACHE,
|
||||
plugins: [
|
||||
new workbox.expiration.ExpirationPlugin({
|
||||
maxEntries: 10,
|
||||
}),
|
||||
],
|
||||
})
|
||||
);
|
||||
|
||||
workbox.routing.registerRoute(
|
||||
({event}) => event.request.destination === 'script',
|
||||
new workbox.strategies.StaleWhileRevalidate({
|
||||
cacheName: JS_CACHE,
|
||||
plugins: [
|
||||
new workbox.expiration.ExpirationPlugin({
|
||||
maxEntries: 15,
|
||||
}),
|
||||
],
|
||||
})
|
||||
);
|
||||
|
||||
workbox.routing.registerRoute(
|
||||
({event}) => event.request.destination === 'style',
|
||||
new workbox.strategies.StaleWhileRevalidate({
|
||||
cacheName: STYLE_CACHE,
|
||||
plugins: [
|
||||
new workbox.expiration.ExpirationPlugin({
|
||||
maxEntries: 15,
|
||||
}),
|
||||
],
|
||||
})
|
||||
);
|
||||
|
||||
workbox.routing.registerRoute(
|
||||
({event}) => event.request.destination === 'image',
|
||||
new workbox.strategies.StaleWhileRevalidate({
|
||||
cacheName: IMAGE_CACHE,
|
||||
plugins: [
|
||||
new workbox.expiration.ExpirationPlugin({
|
||||
maxEntries: 15,
|
||||
}),
|
||||
],
|
||||
})
|
||||
);
|
||||
|
||||
workbox.routing.registerRoute(
|
||||
({event}) => event.request.destination === 'font',
|
||||
new workbox.strategies.StaleWhileRevalidate({
|
||||
cacheName: FONT_CACHE,
|
||||
plugins: [
|
||||
new workbox.expiration.ExpirationPlugin({
|
||||
maxEntries: 15,
|
||||
}),
|
||||
],
|
||||
})
|
||||
);
|
||||
162
settings.js
Normal file
162
settings.js
Normal file
|
|
@ -0,0 +1,162 @@
|
|||
AOS.init();
|
||||
window.onload = (event) => {
|
||||
var firstTime = localStorage.getItem("first_time");
|
||||
if(!firstTime) {
|
||||
// first time loaded!
|
||||
resetCloaks();
|
||||
localStorage.setItem("first_time","1");
|
||||
console.log("first time loaded!")
|
||||
localStorage.setItem("cloakActive", 0)
|
||||
}
|
||||
if (localStorage.getItem("cloakActive") == 0) {
|
||||
if (localStorage.getItem("tabName") != null) {
|
||||
localStorage.setItem("tabName", document.getElementsByTagName("title")[0].text)
|
||||
localStorage.setItem("tabIcon", "./img/icon.png")
|
||||
} else {
|
||||
document.title = "Alu's Unblocker"
|
||||
}
|
||||
} else {
|
||||
console.log("cloaking is enabled!")
|
||||
document.querySelector("link[rel*='icon']").href = localStorage.getItem('tabIcon');
|
||||
document.title = localStorage.getItem('tabName')
|
||||
}
|
||||
|
||||
if (localStorage.getItem("footerHidden") == 'true') {
|
||||
checkboxTwo.checked = true;
|
||||
hideFooter();
|
||||
}
|
||||
if (localStorage.getItem('windowCloak') == "1") {
|
||||
checkboxThree.checked = true
|
||||
}
|
||||
|
||||
};
|
||||
let checkbox = document.getElementById('checkbox')
|
||||
|
||||
|
||||
function toastSuccess() {
|
||||
toastr["success"]("Cloak Successful!")
|
||||
toastr.options = {
|
||||
"closeButton": false,
|
||||
"debug": false,
|
||||
"newestOnTop": false,
|
||||
"progressBar": false,
|
||||
"positionClass": "toast-top-right",
|
||||
"preventDuplicates": false,
|
||||
"onclick": null,
|
||||
"showDuration": "2000",
|
||||
"hideDuration": "900",
|
||||
"timeOut": "100",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
}
|
||||
}
|
||||
function bruh() {
|
||||
console.log("sup")
|
||||
makeItHell();
|
||||
}
|
||||
|
||||
function cloakTab() {
|
||||
let tabCloak = document.getElementById('tab-cloak').value;
|
||||
document.title = tabCloak;
|
||||
localStorage.setItem("cloakActive", 1)
|
||||
if (typeof(Storage) !== "undefined") {
|
||||
localStorage.setItem("tabName", tabCloak);
|
||||
toastSuccess()
|
||||
} else {
|
||||
console.log("%cError! No localStorage API Support!","color: red; background-color: white; font-size: 24px; font-family: monospace;");
|
||||
toastr["error"]("<p>Failed to add to localStorage!</p> <p style='text-decoration: underline;'>Try again later or try updating your browser!</p>")
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"newestOnTop": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"preventDuplicates": false,
|
||||
"onclick": null,
|
||||
"showDuration": "300",
|
||||
"hideDuration": "900",
|
||||
"timeOut": "3000",
|
||||
"extendedTimeOut": "2000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
}
|
||||
}
|
||||
}
|
||||
function changeIcon() {
|
||||
let iconUrl = document.getElementById('icn-change').value;
|
||||
console.log("Your new icon url is: " + iconUrl);
|
||||
localStorage.setItem("cloakActive", 1);
|
||||
document.querySelector("link[rel*='icon']").href = iconUrl;
|
||||
if (typeof(Storage) !== "undefined") {
|
||||
localStorage.setItem("tabIcon", iconUrl);
|
||||
toastSuccess();
|
||||
} else {
|
||||
console.log("%cError! No localStorage API Support!","color: red; background-color: white; font-size: 24px; font-family: monospace;");
|
||||
toastr["error"]("<p>Failed to add to localStorage!</p> <p style='text-decoration: underline;'>Try again later or try updating your browser!</p>")
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"newestOnTop": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"preventDuplicates": false,
|
||||
"onclick": null,
|
||||
"showDuration": "300",
|
||||
"hideDuration": "900",
|
||||
"timeOut": "3000",
|
||||
"extendedTimeOut": "2000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
}
|
||||
}
|
||||
}
|
||||
function resetCloaks() {
|
||||
console.log(document.getElementsByTagName("title")[0].text)
|
||||
localStorage.setItem("tabIcon", "./img/icon.svg")
|
||||
console.log("localStorage items reset to default!")
|
||||
document.title = "Settings";
|
||||
localStorage.setItem("tabName", document.getElementsByTagName("title")[0].text);
|
||||
document.querySelector("link[rel*='icon']").href = "./img/icon.svg";
|
||||
localStorage.setItem("cloakActive", 0)
|
||||
}
|
||||
|
||||
//POPULAR CLOAKS
|
||||
|
||||
function googleCloak() {
|
||||
localStorage.setItem("tabName", "Google")
|
||||
localStorage.setItem("cloakActive", 1)
|
||||
localStorage.setItem("tabIcon", "https://google.com/favicon.ico")
|
||||
document.title = "Google"
|
||||
document.querySelector("link[rel*='icon']").href = "https://google.com/favicon.ico";
|
||||
toastSuccess()
|
||||
}
|
||||
function googleClassroomCloak() {
|
||||
localStorage.setItem("tabName", "Google Classroom")
|
||||
localStorage.setItem("cloakActive", 1)
|
||||
localStorage.setItem("tabIcon", "https://ssl.gstatic.com/classroom/favicon.png")
|
||||
document.title = "Google Classroom"
|
||||
document.querySelector("link[rel*='icon']").href = "https://ssl.gstatic.com/classroom/favicon.png";
|
||||
toastSuccess()
|
||||
}
|
||||
function driveCloak() {
|
||||
localStorage.setItem("tabName", "Google Drive")
|
||||
localStorage.setItem("cloakActive", 1)
|
||||
localStorage.setItem("tabIcon", "https://ssl.gstatic.com/images/branding/product/1x/drive_2020q4_32dp.png")
|
||||
document.title = "Google Drive"
|
||||
document.querySelector("link[rel*='icon']").href = "https://ssl.gstatic.com/images/branding/product/1x/drive_2020q4_32dp.png";
|
||||
toastSuccess()
|
||||
}
|
||||
function canvasCloak() {
|
||||
localStorage.setItem("tabName", "Dashboard")
|
||||
localStorage.setItem("cloakActive", 1)
|
||||
localStorage.setItem("tabIcon", "https://instructure-uploads.s3.amazonaws.com/account_21430000000000001/attachments/555889/favicon.ico?AWSAccessKeyId=AKIAJFNFXH2V2O7RPCAA&Expires=1937131715&Signature=tP2Va13xUp6AuI4ridXPQab5DMg%3D&response-cache-control=Cache-Control%3Amax-age%3D473364000.0%2C%20public&response-expires=473364000.0")
|
||||
document.title = "Dashboard"
|
||||
document.querySelector("link[rel*='icon']").href = "https://instructure-uploads.s3.amazonaws.com/account_21430000000000001/attachments/555889/favicon.ico?AWSAccessKeyId=AKIAJFNFXH2V2O7RPCAA&Expires=1937131715&Signature=tP2Va13xUp6AuI4ridXPQab5DMg%3D&response-cache-control=Cache-Control%3Amax-age%3D473364000.0%2C%20public&response-expires=473364000.0";
|
||||
toastSuccess()
|
||||
}
|
||||
12
start.sh
Normal file
12
start.sh
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Used for starting node servers, feel free to use for whatever!
|
||||
|
||||
# Prerequisites
|
||||
# PM2
|
||||
# NodeJS
|
||||
# A NodeJS Server (obviously)
|
||||
|
||||
# Directory to change
|
||||
|
||||
cd /var/www/html/Ultraviolet-Node/
|
||||
|
||||
pm2 start index.js
|
||||
3
sw.js
Normal file
3
sw.js
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { fetchEvent } from "./osana/fetch.js";
|
||||
|
||||
self.addEventListener("fetch", event => event.respondWith(fetchEvent(event)));
|
||||
89
themes.js
Normal file
89
themes.js
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
// AlusUB Themes by wearr
|
||||
// pls don't copy my work ❤️
|
||||
|
||||
//Init
|
||||
window.onload = (event) => {
|
||||
let themeInit = localStorage.getItem("themeInit");
|
||||
if (!themeInit) {
|
||||
// Theme Not Init!
|
||||
// Initializing Now!
|
||||
localStorage.setItem('themeInit', "1") // Theme Init Success!
|
||||
localStorage.setItem("siteTheme", "dark")
|
||||
} else {
|
||||
console.log('ThemeInit Already Initialized!')
|
||||
}
|
||||
}
|
||||
|
||||
//Theme Selector
|
||||
|
||||
let activated = "false"
|
||||
function dropdown() {
|
||||
if (activated == "false") { // Must be closed
|
||||
activated = "true"
|
||||
document.getElementById('item-wrapper').style.height = "240px"
|
||||
setTimeout(() => {
|
||||
document.getElementById('item').style.display = "flex"
|
||||
document.getElementById('item').style.opacity = "100"
|
||||
document.getElementById('item').style.border = "2px solid white"
|
||||
}, 50);
|
||||
setTimeout(() => {
|
||||
document.getElementById('item-2').style.display = "flex"
|
||||
document.getElementById('item-2').style.opacity = "100"
|
||||
document.getElementById('item-2').style.border = "2px solid white"
|
||||
}, 150);
|
||||
setTimeout(() => {
|
||||
document.getElementById('item-3').style.display = "flex"
|
||||
document.getElementById('item-3').style.opacity = "100"
|
||||
document.getElementById('item-3').style.border = "2px solid white"
|
||||
}, 200);
|
||||
setTimeout(() => {
|
||||
document.getElementById('item-4').style.display = "flex"
|
||||
document.getElementById('item-4').style.opacity = "100"
|
||||
document.getElementById('item-4').style.border = "2px solid white"
|
||||
}, 250);
|
||||
} else { // Activated must equal true
|
||||
activated = "false"
|
||||
document.getElementById('item-wrapper').style.height = "0px"
|
||||
setTimeout(() => {
|
||||
document.getElementById('item').style.display = "none"
|
||||
document.getElementById('item').style.opacity = "0"
|
||||
document.getElementById('item').style.border = "none"
|
||||
}, 200);
|
||||
setTimeout(() => {
|
||||
document.getElementById('item-2').style.display = "none"
|
||||
document.getElementById('item-2').style.opacity = "0"
|
||||
document.getElementById('item-2').style.border = "none"
|
||||
}, 150);
|
||||
setTimeout(() => {
|
||||
document.getElementById('item-3').style.display = "none"
|
||||
document.getElementById('item-3').style.opacity = "0"
|
||||
document.getElementById('item-3').style.border = "none"
|
||||
}, 50);
|
||||
setTimeout(() => {
|
||||
document.getElementById('item-4').style.display = "none"
|
||||
document.getElementById('item-4').style.opacity = "0"
|
||||
document.getElementById('item-4').style.border = "none"
|
||||
}, 50);
|
||||
}
|
||||
}
|
||||
function dark() {
|
||||
localStorage.setItem('siteTheme', "dark");
|
||||
window.location.reload();
|
||||
}
|
||||
function light() {
|
||||
localStorage.setItem('siteTheme', "light");
|
||||
window.location.reload();
|
||||
}
|
||||
function nocss() {
|
||||
localStorage.setItem('siteTheme', "noCSS");
|
||||
window.location.reload();
|
||||
}
|
||||
function rainbowVomit() {
|
||||
if(confirm("FLASHING LIGHTS WARNING!!! \nALU TAKES NO RESPONSIBILITY FOR ANY HEALTH ISSUES") == true) {
|
||||
console.log("loading rainbow");
|
||||
localStorage.setItem('siteTheme', "rainbow");
|
||||
window.location.reload();
|
||||
} else {
|
||||
console.log('Load cancelled.');
|
||||
}
|
||||
}
|
||||
41
toggles.js
Normal file
41
toggles.js
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
window.onload = (event) => {
|
||||
|
||||
}
|
||||
let footerHidden = false;
|
||||
function checkedTwo() {
|
||||
if (checkboxTwo.checked !== true) {
|
||||
hideFooter();
|
||||
} else {
|
||||
showFooter();
|
||||
}
|
||||
}
|
||||
|
||||
function checked() {
|
||||
if (checkbox.checked !== true) {
|
||||
console.log("enabled!")
|
||||
} else {
|
||||
console.log("disabled!")
|
||||
}
|
||||
}
|
||||
|
||||
function checkedThree() {
|
||||
if (checkboxThree.checked !== true) {
|
||||
localStorage.setItem('windowCloak', "1")
|
||||
window.location.reload();
|
||||
} else {
|
||||
localStorage.setItem('windowCloak', "0")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function hideFooter() {
|
||||
document.getElementById('footer').style.display = "none"
|
||||
footerHidden = true;
|
||||
localStorage.setItem("footerHidden", 'true')
|
||||
}
|
||||
|
||||
function showFooter() {
|
||||
document.getElementById('footer').style.display = ""
|
||||
footerHidden = false;
|
||||
localStorage.setItem("footerHidden", 'false')
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue