From 4829d45b09852327307d7768ca0192ec9edd0019 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 12 Jan 2018 22:53:07 +0100 Subject: [PATCH] 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",