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