diff --git a/about.html b/about.html
index e7447b37..0385f7ea 100644
--- a/about.html
+++ b/about.html
@@ -83,6 +83,10 @@
>
DireFlaws
+
+ Awesome-XV
diff --git a/ad.html b/ad.html
index 24572c26..0c34b051 100644
--- a/ad.html
+++ b/ad.html
@@ -41,6 +41,7 @@
What happened? Why does Selenite have ads?
After a lot of thinking, I have decided that the best course of action for Selenite is to add ads. I have spent a lot of time to make sure they are the least intrusive on your experience while still allowing me to make a profit off of the website. This decision was not out of greed or anything, it was because I can't expand Selenite past a certain point without a guaranteed income, and I can't do that solely off of donations.
+ Ads are powered by Adsterra, and we use the 728x90 banner ads and the Native banners, with erotic ads disabled.
There is still an option to disable ads. You can also use an adblocker (which I HIGHLY recommend).
Click here to disable ads.
diff --git a/cloaks.json b/cloaks.json
index de31e083..00d6edd2 100644
--- a/cloaks.json
+++ b/cloaks.json
@@ -28,8 +28,8 @@
],
"quizlet": [
"Your Sets", "https://assets.quizlet.com/a/j/dist/app/i/logo/2021/q-twilight.e27821d9baad165.png"
- ]
+ ],
"schoology": [
- "Schoology" "https://technology-mnps.ss13.sharpschool.com/UserFiles/Servers/Server_33575695/Image/Technology/Digital%20Tools/Schoology/Schoology.png"
+ "Schoology", "https://technology-mnps.ss13.sharpschool.com/UserFiles/Servers/Server_33575695/Image/Technology/Digital%20Tools/Schoology/Schoology.png"
]
}
diff --git a/img/pfps/awesome.webp b/img/pfps/awesome.webp
new file mode 100644
index 00000000..c00adf02
Binary files /dev/null and b/img/pfps/awesome.webp differ
diff --git a/js/cloaks.js b/js/cloaks.js
index caa5767e..3002735d 100644
--- a/js/cloaks.js
+++ b/js/cloaks.js
@@ -1,53 +1,46 @@
let cloaklist;
-$.getJSON("/cloaks.json", function (data) {
- cloaklist = data;
-});
-
function cloakExceptions(url) {
- if (url.includes("harrisonburg.instructure.com") == true) {
- return "learn.canvas.net";
- }
- return url;
+ if (url.includes("harrisonburg.instructure.com") == true) {
+ return "learn.canvas.net";
+ }
+ return url;
}
function setCloakCookie(name, url) {
- console.log(name + url);
- if (!(url == null)) {
- document.cookie =
- "tabicon=" + url + "";
- document.cookie = "tabname=" + name;
- setCloak();
- } else {
- url = cloakExceptions($("#webicon").val());
- document.cookie =
- "tabicon=https://s2.googleusercontent.com/s2/favicons?domain_url=" + url;
- document.cookie = "tabname=" + $("#webname").val();
- setCloak();
- }
+ console.log(name + url);
+ if (!(url == null)) {
+ document.cookie = "tabicon=" + url + "";
+ document.cookie = "tabname=" + name;
+ setCloak();
+ } else {
+ 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 = "Settings | Selenite";
- link = document.createElement("link");
- link.rel = "icon";
- document.head.appendChild(link);
- link.href = "/favicon.png";
+ 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 = "Settings | Selenite";
+ link = document.createElement("link");
+ link.rel = "icon";
+ document.head.appendChild(link);
+ link.href = "/favicon.png";
}
-function loadCloaks() {
- var presetCloaks = document.getElementById("presetCloaks");
- presetCloaks.onchange = (event) => {
- console.log(event.target.value);
- console.log(cloaklist[event.target.value]);
- setCloakCookie(
- cloaklist[event.target.value][0],
- cloaklist[event.target.value][1]
- );
- };
+async function loadCloaks() {
+ const response = await fetch("/cloaks.json");
+ cloaklist = await response.json();
+ var presetCloaks = document.getElementById("presetCloaks");
+ presetCloaks.onchange = (event) => {
+ console.log(event.target.value);
+ console.log(cloaklist[event.target.value]);
+ setCloakCookie(cloaklist[event.target.value][0], cloaklist[event.target.value][1]);
+ };
}
-document.addEventListener('DOMContentLoaded', function() {
- loadCloaks();
-})
\ No newline at end of file
+document.addEventListener("DOMContentLoaded", function () {
+ loadCloaks();
+});
diff --git a/js/main.js b/js/main.js
index b6595265..beb82e5c 100644
--- a/js/main.js
+++ b/js/main.js
@@ -16,10 +16,12 @@ function check() {
}
document.addEventListener("DOMContentLoaded", function () {
- if(document.getElementById("adcontainer") && Math.random() > 0.5 || localStorage.getItem("selenite.adblock") == "true") {
- document.getElementById("adcontainer").innerHTML = "";
+ if(document.querySelectorAll('[id=adcontainer]')) {
+ for(let i = 0; i < document.querySelectorAll('[id=adcontainer]').length; i++) {
+ if(Math.random() < 0.5 || localStorage.getItem("selenite.adblock") == "true")
+ document.querySelectorAll('[id=adcontainer]')[i].innerHTML = "";
+ }
}
-
const iconSetting = document.querySelector("input#discordIcon");
const blockClose = document.querySelector("input#blockClose");
const openBlank = document.getElementById("blank");
diff --git a/projects.html b/projects.html
index 81d446e0..ff6d47e5 100644
--- a/projects.html
+++ b/projects.html
@@ -116,6 +116,11 @@
Suggest a game!
games loading..
+
diff --git a/support.html b/support.html
index 4f2ee561..122584a1 100644
--- a/support.html
+++ b/support.html
@@ -46,6 +46,9 @@
+ also viewing this ad will help me :)
+
+