rename special to main

This commit is contained in:
uwaa 2025-01-10 10:31:16 +00:00
parent 203b1ba676
commit 350e88221f

14
rot.js
View file

@ -135,8 +135,8 @@ waitUntil("#music-mute").then((box) => {
});
//Theme application
function applySpecialTheme() {
console.log("Applying special theme");
function applyMainTheme() {
console.log("Applying main theme");
setTimeout(() => {
let pageMusic = document.querySelector('meta[name="pageMusic"]')?.content || document.getElementById("pageMusic")?.getAttribute("href");
setMusic(pageMusic);
@ -224,7 +224,7 @@ function findProfileThemingPost() {
let pathSpl = newPath.split("/");
switch (pathSpl.length) {
case 1:
applySpecialTheme(); //Root
applyMainTheme(); //Root
break;
case 2:
@ -233,7 +233,7 @@ function findProfileThemingPost() {
case "announcements":
case "lists":
case "bookmarks":
applySpecialTheme();
applyMainTheme();
break;
default:
@ -245,7 +245,7 @@ function findProfileThemingPost() {
case 3:
switch (pathSpl[1]) {
case "main":
applySpecialTheme(); //Main timelines
applyMainTheme(); //Main timelines
break;
case "users":
@ -257,13 +257,13 @@ function findProfileThemingPost() {
break;
default:
applySpecialTheme();
applyMainTheme();
break;
}
break;
default:
applySpecialTheme();
applyMainTheme();
break;
}
});