From 4829d45b09852327307d7768ca0192ec9edd0019 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 12 Jan 2018 22:53:07 +0100 Subject: [PATCH 1/2] Fixed netflix misalignment in FF 57+ --- js/modules/Resizer.js | 1 + manifest-ff.json => manifest-chrome.json | 21 ++++----------------- manifest.json | 3 +-- 3 files changed, 6 insertions(+), 19 deletions(-) rename manifest-ff.json => manifest-chrome.json (83%) diff --git a/js/modules/Resizer.js b/js/modules/Resizer.js index df732cf..1ea00f8 100644 --- a/js/modules/Resizer.js +++ b/js/modules/Resizer.js @@ -454,6 +454,7 @@ function _res_applyCss(dimensions){ // misc. dimensions.position = "position: absolute !important"; + dimensions.margin = "margin: 0px !important"; // dimensions.objectFit = "object-fit: cover !important"; var vid = $("video")[0]; diff --git a/manifest-ff.json b/manifest-chrome.json similarity index 83% rename from manifest-ff.json rename to manifest-chrome.json index 1b32631..b276636 100644 --- a/manifest-ff.json +++ b/manifest-chrome.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "Ultrawidify", - "version": "2.0.1", + "version": "2.0.3", "icons": { "32":"res/icons/uw-32.png", @@ -9,29 +9,16 @@ }, "description": "Aspect ratio fixer for youtube that works around some people's disability to properly encode 21:9 (and sometimes, 16:9) videos.", - - "background": { - "scripts": [ - "js/dep/jquery-3.1.1.js", - "js/lib/BrowserDetect.js", - "js/lib/StorageManager.js", - - "js/conf/Debug.js", - "js/conf/Settings.js", - "js/conf/Keybinds.js", - - "js/uw-bg.js" - ] - }, - "content_scripts": [{ "matches": ["*://*/*"], "js": [ "js/dep/jquery-3.1.1.js", + "js/dep/chrome/chrome-extension-async.js", "js/lib/BrowserDetect.js", "js/lib/StorageManager.js", + "js/lib/Comms.js", "js/conf/Debug.js", "js/conf/Settings.js", @@ -58,7 +45,7 @@ "browser_action": { "default_icon": "res/icons/uw-32.png", "default_popup": "res/popup/popup.html", - "default_title": "Uʟᴛʀᴀᴡɪᴅɪꜰʏ" + "default_title": "Ultrawidify" }, "web_accessible_resources": [ diff --git a/manifest.json b/manifest.json index 0d35db9..4ca6b26 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "Ultrawidify", - "version": "2.0.2", + "version": "2.0.3", "icons": { "32":"res/icons/uw-32.png", @@ -14,7 +14,6 @@ "matches": ["*://*/*"], "js": [ "js/dep/jquery-3.1.1.js", - "js/dep/chrome/chrome-extension-async.js", "js/lib/BrowserDetect.js", "js/lib/StorageManager.js", From 7175db885e6e2596317a498d6f0f71b047b8974a Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 12 Jan 2018 23:31:03 +0100 Subject: [PATCH 2/2] Updated README.md --- README.md | 13 ++++++++----- js/conf/Debug.js | 4 ++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5d6f153..43797c9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Ultrawidify — aspect ratio fixer for youtube and netflix +# Ultrawidify — aspect ratio fixer for youtube and netflix ## TL;DR @@ -6,7 +6,7 @@ If you own an ultrawide monitor, you have probably noticed that sometimes videos ![Demo](img-demo/example-httyd2.png "Should these black bars be here? No [...] But an ultrawide user never forgets.") -Works on Youtube and Netflix. Available for [Firefox (v1.2.1)](https://addons.mozilla.org/en/firefox/addon/ultrawidify/) and [Chrome (v1.2.1)](https://chrome.google.com/webstore/detail/ultrawidify/dndehlekllfkaijdlokmmicgnlanfjbi). +Works on Youtube and Netflix. Available for [Firefox (v2.0.3)](https://addons.mozilla.org/en/firefox/addon/ultrawidify/) and [Chrome (v2.0.2)](https://chrome.google.com/webstore/detail/ultrawidify/dndehlekllfkaijdlokmmicgnlanfjbi).   @@ -59,7 +59,7 @@ Manually triggering aspect ratio change will suspend automatic aspect ratio dete ### Permanent install / stable -[v2.0.1 — Regular version — download from AMO](https://addons.mozilla.org/en/firefox/addon/ultrawidify/) +[v2.0.3 — Regular version — download from AMO](https://addons.mozilla.org/en/firefox/addon/ultrawidify/) [v2.0.2 — Regular version — download from Chrome store](https://chrome.google.com/webstore/detail/ultrawidify/dndehlekllfkaijdlokmmicgnlanfjbi) @@ -77,18 +77,21 @@ Manually triggering aspect ratio change will suspend automatic aspect ratio dete ## Plans for the future -* Chrome port * Edge port * Improvements to autodetection ## Changelog +### v2.0.3 (FF/AMO) + +* Fixed the bug where Netflix videos weren't vertically centered in Firefox 57+ (not present in Chrome or FF 56 or earlier) + ### v2.0.2 (Chrome) v2.0.1, but UI in the extension button now also works in Chrome. -### v2.0.1 (FF/AMO) +### v2.0.1 * Autodetection: aspect ratio is no longer corrected if the detected difference is too small to make a meaningful difference diff --git a/js/conf/Debug.js b/js/conf/Debug.js index a92131c..3bd9aa4 100644 --- a/js/conf/Debug.js +++ b/js/conf/Debug.js @@ -1,6 +1,6 @@ // Set prod to true when releasing -// _prod = true; -_prod = false; +_prod = true; +//_prod = false; Debug = { debug: true,