Skip to content

Commit

Permalink
feat: fixing ui, again
Browse files Browse the repository at this point in the history
thank you googol
  • Loading branch information
reisxd committed Mar 23, 2024
1 parent da10870 commit 8800d1f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion mods/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function execute_once_dom_loaded() {
window.tectonicConfig.featureSwitches.enableAnimations = true;
window.tectonicConfig.featureSwitches.enableOnScrollLinearAnimation = true;
window.tectonicConfig.featureSwitches.enableListAnimations = true;
} catch (e) {}
} catch (e) { }
}

// We handle key events ourselves.
Expand Down Expand Up @@ -239,6 +239,20 @@ function execute_once_dom_loaded() {
setTimeout(() => {
showNotification('Press [GREEN] to open TizenTube configuration screen\nPress [BLUE] to open Video Speed configuration screen');
}, 2000);

// Fix UI issues, again. Love, Googol.

if (configRead('enableFixedUI')) {
try {
const observer = new MutationObserver((_, _2) => {
const body = document.querySelector('body');
if (body.classList.contains('app-quality-root')) {
body.classList.remove('app-quality-root');
}
});
observer.observe(document.getElementsByTagName('body')[0], { attributes: true, childList: false, subtree: false });
} catch (e) { }
}
}

export function showNotification(text, time = 3000) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@foxreis/tizentube",
"appName": "TizenTube",
"version": "1.2.5",
"version": "1.2.6",
"description": "TizenTube is an ad-free and sponsor-free solution for your favourite streaming website on your Tizen (Samsung) TVs.",
"packageType": "mods",
"websiteURL": "https://youtube.com/tv",
Expand Down

0 comments on commit 8800d1f

Please sign in to comment.