diff --git a/ads.txt b/ads.txt new file mode 100644 index 00000000..815b451b --- /dev/null +++ b/ads.txt @@ -0,0 +1 @@ +google.com, pub-3415518411898563, DIRECT, f08c47fec0942fa0 \ No newline at end of file diff --git a/js/all.js b/js/all.js index 2b569df7..1599c83b 100644 --- a/js/all.js +++ b/js/all.js @@ -56,6 +56,11 @@ function panicMode() { window.onload = function() { setCloak(); + var head = document.getElementsByTagName('head')[0]; + var gads = document.createElement('script'); + gads.type = 'text/javascript'; + gads.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3415518411898563'; + head.appendChild(script); if (!window.jQuery) { var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); diff --git a/js/cloak.js b/js/cloak.js deleted file mode 100644 index e9c325d9..00000000 --- a/js/cloak.js +++ /dev/null @@ -1,37 +0,0 @@ -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(); - Toastify({ - text: "Tab cloak saved!", - duration: 2000, - gravity: "top", // `top` or `bottom` - position: "center", // `left`, `center` or `right` - style: { - background: "linear-gradient(var(--bg-1), var(--bg-2))", - width: "25%", - boxShadow: "0px 0px 5px 5px var(--input-bg-color)", - }, - onClick: function () {}, // Callback after click - }).showToast(); - 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 | Selenite"; - link = document.createElement("link"); - link.rel = "icon"; - document.head.appendChild(link); - link.href = "/favicon.png"; -}