little saved notifications :3

This commit is contained in:
Sky 2023-07-26 16:52:12 -04:00
parent df0a8efb53
commit 96f1a7c7c9
2 changed files with 22 additions and 0 deletions

View File

@ -9,6 +9,17 @@ function setCloakCookie() {
url = cloakExceptions($('#webicon').val()) url = cloakExceptions($('#webicon').val())
document.cookie = 'tabicon=https://s2.googleusercontent.com/s2/favicons?domain_url=' + url; document.cookie = 'tabicon=https://s2.googleusercontent.com/s2/favicons?domain_url=' + url;
document.cookie = 'tabname=' + $('#webname').val(); document.cookie = 'tabname=' + $('#webname').val();
Toastify({
text: 'Tab cloak saved!',
duration: 3000,
gravity: "top", // `top` or `bottom`
position: "left", // `left`, `center` or `right`
style: {
background: "linear-gradient(42deg, rgba(36, 69, 128, 1) 100%, rgb(24, 17, 87) 0%)",
width: "25%",
},
onClick: function(){} // Callback after click
}).showToast();
setCloak(); setCloak();
} }

View File

@ -26,6 +26,17 @@
} }
document.cookie = "panicurl=" + $("#panic").val(); document.cookie = "panicurl=" + $("#panic").val();
Toastify({
text: 'Panic mode saved!.',
duration: 3000,
gravity: "top", // `top` or `bottom`
position: "left", // `left`, `center` or `right`
style: {
background: "linear-gradient(42deg, rgba(36, 69, 128, 1) 100%, rgb(24, 17, 87) 0%)",
width: "25%",
},
onClick: function(){} // Callback after click
}).showToast();
} }