mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-15 10:12:06 -05:00
google ads
This commit is contained in:
parent
1169c01a7e
commit
70ff16fefe
1
ads.txt
Normal file
1
ads.txt
Normal file
@ -0,0 +1 @@
|
||||
google.com, pub-3415518411898563, DIRECT, f08c47fec0942fa0
|
@ -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');
|
||||
|
37
js/cloak.js
37
js/cloak.js
@ -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";
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user