diff --git a/cloak.html b/cloak.html
index fe8f521c..5d371217 100644
--- a/cloak.html
+++ b/cloak.html
@@ -18,6 +18,7 @@
+
diff --git a/index.html b/index.html
index 14ba2572..616ecc88 100644
--- a/index.html
+++ b/index.html
@@ -1,15 +1,13 @@
-
-
+
-
e-gamepass
-
+
diff --git a/js/all.js b/js/all.js
index 7a007ce0..4efbbf4f 100644
--- a/js/all.js
+++ b/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() {
var tabicon = getCookie("tabicon");
@@ -41,11 +21,7 @@ function setCloak() {
if (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) {
let name = cname + "=";
let decodedCookie = decodeURIComponent(document.cookie);
@@ -64,11 +40,4 @@ function getCookie(cname) {
document.addEventListener("DOMContentLoaded", function() {
setCloak();
-});
-
-function cloakExceptions(url) {
- if (url.includes('harrisonburg.instructure.com') == true) {
- return "learn.canvas.net";
- }
- return url;
-}
\ No newline at end of file
+});
\ No newline at end of file
diff --git a/js/cloak.js b/js/cloak.js
new file mode 100644
index 00000000..f4bb5056
--- /dev/null
+++ b/js/cloak.js
@@ -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";
+}
\ No newline at end of file