google ads

This commit is contained in:
Sky 2023-08-21 10:18:49 -04:00
parent 1169c01a7e
commit 70ff16fefe
3 changed files with 6 additions and 37 deletions

1
ads.txt Normal file
View File

@ -0,0 +1 @@
google.com, pub-3415518411898563, DIRECT, f08c47fec0942fa0

View File

@ -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');

View File

@ -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";
}