Debug mode off, updated readme, manifest.json is now written for Chrome

This commit is contained in:
Tamius Han 2018-02-06 00:48:13 +01:00
parent d78fa346ce
commit 1ceca7c293
4 changed files with 76 additions and 48 deletions

View File

@ -81,7 +81,12 @@ Manually triggering aspect ratio change will suspend automatic aspect ratio dete
## Changelog
### v2.1.0 (FF/AMO, Chrome)
### v2.1.1 (FF/Amo)
* Fixed issue #20 — aspect ratio autodetection should now start on subsequent videos as well.
* Netflix sometimes always showed 'no video detected' warning. Popup and background script now periodically poll for `hasVideos` property.
### v2.1.0 (Chrome)
* Popup should work more reliably now
* Twitch works ... kinda but not always

View File

@ -1,6 +1,6 @@
// Set prod to true when releasing
// _prod = true;
_prod = false;
_prod = true;
// _prod = false;
Debug = {
debug: true,

View File

@ -1,44 +1,70 @@
{
"manifest_version": 2,
"name": "Ultrawidify",
"version": "2.0.3",
"version": "2.1.1",
"icons": {
"32":"res/icons/uw-32.png",
"64":"res/icons/uw-64.png"
},
"description": "Aspect ratio fixer for youtube that works around some people's disability to properly encode 21:9 (and sometimes, 16:9) videos.",
"description": "Aspect ratio fixer for youtube that works around some people's disability to properly encode 21:9 (and sometimes, 16:9) videos. Now with more autodetection.",
"content_scripts": [{
"matches": ["*://*/*"],
"js": [
"js/dep/jquery-3.1.1.js",
"js/lib/BrowserDetect.js",
"js/lib/StorageManager.js",
"js/lib/Comms.js",
"js/conf/Debug.js",
"js/conf/Settings.js",
"js/conf/SitesConf.js",
"js/conf/Status.js",
"js/conf/ExtensionConf.js",
"js/lib/FullScreenDetect.js",
"js/modules/PageInfo.js",
"js/modules/ArDetect.js",
"js/modules/Resizer.js",
"js/conf/Keybinds.js",
"js/uw.js" ],
"js/dep/jquery-3.1.1.js",
"js/run/GlobalVars.js",
"js/lib/BrowserDetect.js",
"js/lib/StorageManager.js",
"js/lib/Comms.js",
"js/conf/Debug.js",
"js/conf/Settings.js",
"js/conf/SitesConf.js",
"js/conf/Status.js",
"js/conf/ExtensionConf.js",
"js/lib/PlayerDetect.js",
"js/modules/PageInfo.js",
"js/modules/ArDetect.js",
"js/modules/Resizer.js",
"js/conf/Keybinds.js",
"js/uw.js" ],
"all_frames": true
}],
"background": {
"scripts": [
"js/dep/jquery-3.1.1.js",
"js/lib/BrowserDetect.js",
"js/lib/StorageManager.js",
"js/lib/Comms.js",
"js/conf/Debug.js",
"js/conf/Settings.js",
"js/conf/SitesConf.js",
"js/conf/Status.js",
"js/conf/ExtensionConf.js",
"js/modules/PageInfo.js",
"js/modules/ArDetect.js",
"js/modules/Resizer.js",
"js/conf/Keybinds.js",
"js/uw-bg.js"
]
},
"permissions": [
"tabs", "storage", "activeTab", "<all_urls>", "*://*.youtube.com/*", "*://youtube.com/*", "*://imdb.com/*", "*://*.imdb.com/*"
"tabs", "storage", "activeTab", "<all_urls>", "webNavigation"
],
"browser_action": {
@ -48,25 +74,20 @@
},
"web_accessible_resources": [
"js/*",
"js/*",
"res/img/ytplayer-icons/zoom.png",
"res/img/ytplayer-icons/unzoom.png",
"res/img/ytplayer-icons/fitw.png",
"res/img/ytplayer-icons/fith.png",
"res/img/ytplayer-icons/reset.png",
"res/img/ytplayer-icons/settings.png",
"res/img/settings/about-bg.png",
"res/css/uw_common.css",
"res/css/uw_yt.css",
"res/css/uw_netflix.css",
"res/css/uw_settings.css"
],
"res/img/ytplayer-icons/zoom.png",
"res/img/ytplayer-icons/unzoom.png",
"res/img/ytplayer-icons/fitw.png",
"res/img/ytplayer-icons/fith.png",
"res/img/ytplayer-icons/reset.png",
"res/img/ytplayer-icons/settings.png",
"options_ui" : {
"page": "res/settings/settings.html",
"open_in_tab": true
}
"res/img/settings/about-bg.png",
"res/css/uw_common.css",
"res/css/uw_yt.css",
"res/css/uw_netflix.css",
"res/css/uw_settings.css"
]
}

View File

@ -14,6 +14,7 @@
"matches": ["*://*/*"],
"js": [
"js/dep/jquery-3.1.1.js",
"js/dep/chrome/chrome-extension-async.js",
"js/run/GlobalVars.js",
"js/lib/BrowserDetect.js",
@ -41,6 +42,7 @@
"background": {
"scripts": [
"js/dep/jquery-3.1.1.js",
"js/dep/chrome/chrome-extension-async.js",
"js/lib/BrowserDetect.js",
"js/lib/StorageManager.js",
@ -64,7 +66,7 @@
},
"permissions": [
"tabs", "storage", "activeTab", "<all_urls>", "webNavigation"
"tabs", "storage", "activeTab", "<all_urls>", "webNavigation"
],
"browser_action": {