From f5ef83719cd618a911467cc2cedf4bb36e3ad837 Mon Sep 17 00:00:00 2001 From: gorhill Date: Fri, 21 Jul 2017 07:48:50 -0400 Subject: [PATCH] address #2806 --- platform/webext/install.rdf | 2 +- platform/webext/manifest.json | 160 ++++++++++++++++++---------------- src/js/tab.js | 2 +- 3 files changed, 86 insertions(+), 78 deletions(-) diff --git a/platform/webext/install.rdf b/platform/webext/install.rdf index 0a036aa4f..aaf1dc12a 100644 --- a/platform/webext/install.rdf +++ b/platform/webext/install.rdf @@ -20,7 +20,7 @@ {{ec8030f7-c20a-464f-9b0e-13a3a9e97384}} - 52.0a1 + 54.0 * diff --git a/platform/webext/manifest.json b/platform/webext/manifest.json index e44cb2aef..e8a7a1a53 100644 --- a/platform/webext/manifest.json +++ b/platform/webext/manifest.json @@ -1,81 +1,89 @@ { - "manifest_version": 2, + "applications":{ + "gecko":{ + "id":"uBlock0@raymondhill.net", + "strict_min_version":"54.0" + } + }, + "author":"All uBlock Origin contributors", + "background":{ + "page":"background.html" + }, + "browser_action":{ + "browser_style":false, + "default_icon":{ + "19":"img/browsericons/icon19.png", + "38":"img/browsericons/icon38.png" + }, + "default_title":"uBlock Origin", + "default_popup":"popup.html" + }, + "commands":{ + "launch-element-zapper":{ + "suggested_key":{ - "name": "uBlock Origin", - "version": "1.9.15.101", + }, + "description":"__MSG_popupTipZapper__" + }, + "launch-element-picker":{ + "suggested_key":{ - "applications": { - "gecko": { - "id": "uBlock0@raymondhill.net", - "strict_min_version": "52.0a1" - } - }, + }, + "description":"__MSG_popupTipPicker__" + }, + "launch-logger":{ + "suggested_key":{ - "commands": { - "launch-element-zapper": { - "suggested_key": { - }, - "description": "__MSG_popupTipZapper__" - }, - "launch-element-picker": { - "suggested_key": { - }, - "description": "__MSG_popupTipPicker__" - }, - "launch-logger": { - "suggested_key": { - }, - "description": "__MSG_popupTipLog__" - } - }, - "default_locale": "en", - "description": "__MSG_extShortDesc__", - "icons": { - "16": "img/icon_16.png", - "128": "img/icon_128.png" - }, - - "browser_action": { - "browser_style": false, - "default_icon": { - "19": "img/browsericons/icon19.png", - "38": "img/browsericons/icon38.png" - }, - "default_title": "uBlock Origin", - "default_popup": "popup.html" - }, - - "author": "All uBlock Origin contributors", - "background": { - "page": "background.html" - }, - "content_scripts": [ - { - "matches": ["http://*/*", "https://*/*"], - "js": ["js/vapi-client.js", "js/contentscript.js"], - "run_at": "document_start", - "all_frames": true - }, - { - "matches": ["http://*/*", "https://*/*"], - "js": ["js/scriptlets/subscriber.js"], - "run_at": "document_idle", - "all_frames": false - } - ], - "minimum_chrome_version": "26.0", - "options_ui": { - "page": "options_ui.html" - }, - "permissions": [ - "contextMenus", - "privacy", - "storage", - "tabs", - "webNavigation", - "webRequest", - "webRequestBlocking", - "" - ], - "short_name": "uBlock₀" + }, + "description":"__MSG_popupTipLog__" + } + }, + "content_scripts":[ + { + "matches":[ + "http://*/*", + "https://*/*" + ], + "js":[ + "js/vapi-client.js", + "js/contentscript.js" + ], + "run_at":"document_start", + "all_frames":true + }, + { + "matches":[ + "http://*/*", + "https://*/*" + ], + "js":[ + "js/scriptlets/subscriber.js" + ], + "run_at":"document_idle", + "all_frames":false + } + ], + "default_locale":"en", + "description":"__MSG_extShortDesc__", + "icons":{ + "16":"img/icon_16.png", + "128":"img/icon_128.png" + }, + "manifest_version":2, + "name":"uBlock Origin", + "options_ui":{ + "page":"options_ui.html" + }, + "permissions":[ + "contextMenus", + "privacy", + "storage", + "tabs", + "webNavigation", + "webRequest", + "webRequestBlocking", + "" + ], + "short_name":"uBlock₀", + "version":"1.9.15.101" } diff --git a/src/js/tab.js b/src/js/tab.js index 1454cc16d..985b1550c 100644 --- a/src/js/tab.js +++ b/src/js/tab.js @@ -592,7 +592,7 @@ vAPI.tabs.onPopupUpdated = (function() { source: 'switch', raw: 'no-popups: ' + µb.hnSwitches.z + ' true' }; - return 1; + result = 1; } }