Tried further Improving video full screen detection.

This commit is contained in:
Maxim Stewart 2019-03-29 15:51:40 -05:00
parent d5c2da57e5
commit 1848bc5b6d
3 changed files with 12 additions and 10 deletions

View File

@ -9,8 +9,8 @@ Better YouTube + works to improve the YouTube experience by providing quick acce
* It allows for quick access to the YouTube video slug. * It allows for quick access to the YouTube video slug.
* It lets Unix, Linux, and MacOS systems the ability to download the video using native app calls. * It lets Unix, Linux, and MacOS systems the ability to download the video using native app calls.
# Version: 1.3.8 # Version: 1.3.9
* Improved video full screen detection. * Tried further Improving video full screen detection.
# Download # Download
https://addons.mozilla.org/en-US/firefox/addon/better-youtube-plus/ https://addons.mozilla.org/en-US/firefox/addon/better-youtube-plus/

View File

@ -1,7 +1,7 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "Better Youtube +", "name": "Better Youtube +",
"version": "1.3.8", "version": "1.3.9",
"description": "Enhancements for Youtube to have a better experience.", "description": "Enhancements for Youtube to have a better experience.",
"applications": { "applications": {

View File

@ -162,13 +162,15 @@
// Functions // Functions
const controlManager = () => { const controlManager = () => {
if (window.innerHeight == screen.height) { setTimeout(function () {
ytEnhancerMenu.style.display = "block"; if (window.innerHeight !== screen.height) {
slugInputTag.style.display = "block"; ytEnhancerMenu.style.display = "block";
} else { slugInputTag.style.display = "block";
ytEnhancerMenu.style.display = "none"; } else {
slugInputTag.style.display = "none"; ytEnhancerMenu.style.display = "none";
} slugInputTag.style.display = "none";
}
}, 200);
} }
const downloadVideo = () => { const downloadVideo = () => {