analytics question mark
This commit is contained in:
@ -5,6 +5,8 @@
|
||||
https://coolors.co/10002b-240046-3c096c-5a189a-7b2cbf-9d4edd-c77dff-e0aaff -->
|
||||
|
||||
<!-- initialize externals -->
|
||||
<!-- chroma.js -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/chroma-js@latest/chroma.min.js"></script>
|
||||
<meta property="og:title" content="Selenite" />
|
||||
<meta property="description" content="Selenite is the best unblocked games site. With over 400 games and an account system, no other websites come close to Selenite." />
|
||||
<meta name="keywords" content="proxy, web proxy, unblock websites, unblock chromebook, free web proxy, proxy list, proxy sites, un block chromebook, online proxy, proxy server, proxysite, proxy youtube, bypass securly, bypass iboss, bypass lightspeed filter, chromebooks, unblock youtube, youtube proxy, unblocked youtube, youtube unblocked, unblock games, selenite, unblocked games, free games">
|
||||
@ -47,8 +49,37 @@
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3415518411898563" crossorigin="anonymous"></script>
|
||||
<script>
|
||||
let cloaks = {
|
||||
"powerschool": [
|
||||
"Grades and Attendance", "https://www.powerschool.com/"
|
||||
],
|
||||
"canvas": [
|
||||
"Dashboard", "https://usc.instructure.com/"
|
||||
],
|
||||
"google": [
|
||||
"Google", "https://google.com/"
|
||||
],
|
||||
"drive": [
|
||||
"My Drive - Google Drive", "https://drive.google.com"
|
||||
],
|
||||
"classroom": [
|
||||
"Home", "https://google-classroom.en.softonic.com"
|
||||
],
|
||||
"ixl": [
|
||||
"IXL | Dashboard", "https://www.ixl.com/favicon.ico"
|
||||
],
|
||||
"khan": [
|
||||
"Dashboard | Khan Academy", "https://www.khanacademy.org/favicon.ico"
|
||||
]
|
||||
}
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
document.querySelector(`option[value="${localStorage.getItem("selenite.theme") || ""}"]`).setAttribute("selected", "");
|
||||
if(document.getElementById("themes").value == "custom") {
|
||||
document.getElementById("colorPicker").style.display = "block";
|
||||
document.getElementById("colorPicker").value = localStorage.getItem("selenite.customThemeMainColor");
|
||||
} else {
|
||||
document.getElementById("colorPicker").style.display = "none";
|
||||
}
|
||||
if(localStorage.getItem("selenite.fast-mode") == 'true') {
|
||||
document.getElementById("fastMode").setAttribute("checked", "")
|
||||
};
|
||||
@ -58,6 +89,20 @@
|
||||
document.getElementById("themes").addEventListener("input", (e)=>{
|
||||
localStorage.setItem("selenite.theme", e.target.value);
|
||||
document.body.setAttribute("theme", e.target.value);
|
||||
if(e.target.value == "custom") {
|
||||
document.getElementById("colorPicker").style.display = "block";
|
||||
document.getElementById("colorPicker").value = localStorage.getItem("selenite.customThemeMainColor");
|
||||
} else {
|
||||
document.getElementById("colorPicker").style.display = "none";
|
||||
document.body.removeAttribute("style");
|
||||
}
|
||||
});
|
||||
document.getElementById("colorPicker").addEventListener("input", (e) => {
|
||||
let generatedTheme = generatePallete(e.target.value);
|
||||
localStorage.setItem("selenite.customTheme", JSON.stringify(generatedTheme));
|
||||
localStorage.setItem("selenite.customThemeMainColor", e.target.value);
|
||||
setTheme(generatedTheme);
|
||||
|
||||
})
|
||||
document.getElementById("fastMode").addEventListener("click", (e) => {
|
||||
localStorage.setItem("selenite.fast-mode", !(e.target.checked == false));
|
||||
@ -68,10 +113,17 @@
|
||||
location.reload();
|
||||
});
|
||||
document.getElementById("submitCloak").addEventListener("click", (e) => {
|
||||
localStorage.setItem("selenite.tab-cloak", JSON.stringify({
|
||||
"name": document.getElementById("cloakName").value || "",
|
||||
"icon": document.getElementById("cloakIcon").value || ""
|
||||
}));
|
||||
if(document.getElementById("cloaks").value) {
|
||||
localStorage.setItem("selenite.tab-cloak", JSON.stringify({
|
||||
"name": cloaks[document.getElementById("cloaks").value][0],
|
||||
"icon": cloaks[document.getElementById("cloaks").value][1]
|
||||
}));
|
||||
} else {
|
||||
localStorage.setItem("selenite.tab-cloak", JSON.stringify({
|
||||
"name": document.getElementById("cloakName").value || "",
|
||||
"icon": document.getElementById("cloakIcon").value || ""
|
||||
}));
|
||||
}
|
||||
});
|
||||
document.getElementById("submitPanic").addEventListener("click", (e) => {
|
||||
localStorage.setItem("selenite.panic-mode", JSON.stringify({
|
||||
@ -79,6 +131,18 @@
|
||||
"url": document.getElementById("panicURL").value || ""
|
||||
}));
|
||||
})
|
||||
function generatePallete(color) {
|
||||
let theme = {};
|
||||
let chromaColor = chroma(color);
|
||||
theme["color-1"] = chromaColor.hex();
|
||||
theme["color-2"] = chromaColor.darken(1).hex();
|
||||
theme["color-3"] = chromaColor.darken(2).hex();
|
||||
theme["color-4"] = chromaColor.darken(3).hex();
|
||||
theme["bg-1"] = chromaColor.darken(1.5).hex();
|
||||
theme["bg-2"] = chromaColor.darken(2.5).hex();
|
||||
theme["text-color"] = "#fff"
|
||||
return theme;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
@ -93,7 +157,9 @@
|
||||
<option value="grass">grass</option>
|
||||
<option value="evil">evil</option>
|
||||
<option value="sky">sky</option>
|
||||
<option value="custom">custom</option>
|
||||
</select>
|
||||
<input type="color" id="colorPicker" style="display: none">
|
||||
</section>
|
||||
<section>
|
||||
<h2>toggles</h2>
|
||||
@ -106,6 +172,17 @@
|
||||
<input type="text" id="cloakName">
|
||||
<p>website icon</p>
|
||||
<input type="text" id="cloakIcon">
|
||||
<select id="cloaks">
|
||||
<option value="">or select a preset</option>
|
||||
<option value="powerschool">powerschool</option>
|
||||
<option value="canvas">canvas</option>
|
||||
<option value="google">google</option>
|
||||
<option value="drive">google drive</option>
|
||||
<option value="classroom">google classroom</option>
|
||||
<option value="ixl">ixl</option>
|
||||
<option value="khan">khan academy</option>
|
||||
</select>
|
||||
|
||||
<button id="submitCloak">set tab cloak</button>
|
||||
</section>
|
||||
<section>
|
||||
|
||||
Reference in New Issue
Block a user