mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-16 10:32:08 -05:00
tiny changes
This commit is contained in:
parent
6ec9ebc0c8
commit
70ecadbae5
@ -18,6 +18,7 @@
|
|||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script>
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script>
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
|
||||||
|
<script src="/js/cloak.js"></script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
<script src="/js/all.js"></script>
|
<script src="/js/all.js"></script>
|
||||||
<!-- https://codeshack.io/json-sorter/ key value -->
|
|
||||||
|
|
||||||
<style>@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');</style>
|
<style>@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');</style>
|
||||||
<link rel="stylesheet" href="/style.css">
|
<link rel="stylesheet" href="/style.css">
|
||||||
|
31
js/all.js
31
js/all.js
@ -1,23 +1,3 @@
|
|||||||
// https://s2.googleusercontent.com/s2/favicons?domain=
|
|
||||||
|
|
||||||
function setCloakCookie() {
|
|
||||||
url = cloakExceptions($('#webicon').val())
|
|
||||||
document.cookie = 'tabicon=https://s2.googleusercontent.com/s2/favicons?domain_url=' + url;
|
|
||||||
document.cookie = 'tabname=' + $('#webname').val();
|
|
||||||
setCloak();
|
|
||||||
}
|
|
||||||
|
|
||||||
function clearCloak() {
|
|
||||||
document.cookie = "tabicon=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
|
||||||
document.cookie = "tabname=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
|
||||||
var link = document.querySelector("link[rel~='icon']");link.remove();
|
|
||||||
document.title = "Tab Cloak | e-gamepass";
|
|
||||||
link = document.createElement('link');
|
|
||||||
link.rel = 'icon';
|
|
||||||
document.head.appendChild(link);
|
|
||||||
link.href = "/favicon.png";
|
|
||||||
}
|
|
||||||
|
|
||||||
function setCloak() {
|
function setCloak() {
|
||||||
var tabicon = getCookie("tabicon");
|
var tabicon = getCookie("tabicon");
|
||||||
|
|
||||||
@ -41,11 +21,7 @@ function setCloak() {
|
|||||||
if (tabname) {
|
if (tabname) {
|
||||||
document.title = tabname;
|
document.title = tabname;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 'https://t1.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=' + $('#webicon').val() + '&size=32';
|
|
||||||
// 'https://s2.googleusercontent.com/s2/favicons?domain_url=' + $('#webicon').val()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCookie(cname) {
|
function getCookie(cname) {
|
||||||
let name = cname + "=";
|
let name = cname + "=";
|
||||||
let decodedCookie = decodeURIComponent(document.cookie);
|
let decodedCookie = decodeURIComponent(document.cookie);
|
||||||
@ -65,10 +41,3 @@ function getCookie(cname) {
|
|||||||
document.addEventListener("DOMContentLoaded", function() {
|
document.addEventListener("DOMContentLoaded", function() {
|
||||||
setCloak();
|
setCloak();
|
||||||
});
|
});
|
||||||
|
|
||||||
function cloakExceptions(url) {
|
|
||||||
if (url.includes('harrisonburg.instructure.com') == true) {
|
|
||||||
return "learn.canvas.net";
|
|
||||||
}
|
|
||||||
return url;
|
|
||||||
}
|
|
24
js/cloak.js
Normal file
24
js/cloak.js
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
function cloakExceptions(url) {
|
||||||
|
if (url.includes('harrisonburg.instructure.com') == true) {
|
||||||
|
return "learn.canvas.net";
|
||||||
|
}
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
|
||||||
|
function setCloakCookie() {
|
||||||
|
url = cloakExceptions($('#webicon').val())
|
||||||
|
document.cookie = 'tabicon=https://s2.googleusercontent.com/s2/favicons?domain_url=' + url;
|
||||||
|
document.cookie = 'tabname=' + $('#webname').val();
|
||||||
|
setCloak();
|
||||||
|
}
|
||||||
|
|
||||||
|
function clearCloak() {
|
||||||
|
document.cookie = "tabicon=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
||||||
|
document.cookie = "tabname=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
||||||
|
var link = document.querySelector("link[rel~='icon']");link.remove();
|
||||||
|
document.title = "Tab Cloak | e-gamepass";
|
||||||
|
link = document.createElement('link');
|
||||||
|
link.rel = 'icon';
|
||||||
|
document.head.appendChild(link);
|
||||||
|
link.href = "/favicon.png";
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user