rename special to main
This commit is contained in:
parent
203b1ba676
commit
350e88221f
1 changed files with 7 additions and 7 deletions
14
rot.js
14
rot.js
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue