This commit is contained in:
MLH
2024-12-12 01:07:57 +01:00
parent d2e0b0e320
commit f69563194d

View File

@@ -56,7 +56,6 @@ modification_rules:
if (document.title === "Jellyfin") {
document.title = "SpaceCloud - Cinema";
}
// Create a MutationObserver to prevent any changes to the title
const observer = new MutationObserver(function (mutations) {
mutations.forEach(function (mutation) {
@@ -68,10 +67,8 @@ modification_rules:
}
});
});
// Observe the document title for changes
observer.observe(document.querySelector('title'), { childList: true });
// Set up a fallback in case of attempts to change the title through direct assignment
Object.defineProperty(document, 'title', {
set: function (value) {