gnuzilla

default description
git clone https://git.awy.one/gnuzilla.git
Log | Files | Refs | README | LICENSE

commit cc20957d47ce94ffb951a2b5bda9038cf5cb5d5e
parent 3cb3e92e55c4f22aaa7e520fea1a1d8fdbef72b4
Author: Amin Bandali <bandali@gnu.org>
Date:   Wed,  8 Apr 2020 01:37:46 -0400

Disable automatic new tab in new version of tortm-browser-button

* data/update-extensions.sh: The logic for automatic new tab opening
was moved from lib/common.js to lib/chrome/chrome.js in the new
version of the tortm-browser-button extension just committed to the
repository.  Adapt our workaround for disabling this behaviour
accordingly.
* data/extensions/tortm-browser-button@jeremybenthum/lib/chrome/chrome.js:
Don't automatically open new tab to extension homepage after install
or update.

Diffstat:
Mdata/extensions/tortm-browser-button@jeremybenthum/lib/chrome/chrome.js | 2+-
Mdata/update-extensions.sh | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/data/extensions/tortm-browser-button@jeremybenthum/lib/chrome/chrome.js b/data/extensions/tortm-browser-button@jeremybenthum/lib/chrome/chrome.js @@ -16,7 +16,7 @@ chrome.runtime.onInstalled.addListener(function (e) { var doupdate = previous && parseInt((Date.now() - config.welcome.lastupdate) / (24 * 3600 * 1000)) > 45; if (e.reason === "install" || (e.reason === "update" && doupdate)) { var parameter = (e.previousVersion ? "&p=" + e.previousVersion : '') + "&type=" + e.reason; - app.tab.open(app.homepage() + "?v=" + app.version() + parameter); +// app.tab.open(app.homepage() + "?v=" + app.version() + parameter); config.welcome.lastupdate = Date.now(); } }, 3000); diff --git a/data/update-extensions.sh b/data/update-extensions.sh @@ -27,7 +27,7 @@ for extension in librejs https-everywhere librejs-usps-compatibility submit-me l done -sed '/type=install/s=^=//=' -i extensions/tortm-browser-button@jeremybenthum/lib/common.js +sed '/app\.tab\.open.*parameter.*/s=^=//=' -i extensions/tortm-browser-button@jeremybenthum/lib/chrome/chrome.js sed '/autoUpdateRulesets/s/true/false/' -i extensions/https-everywhere@eff.org/pages/options/ux.js extensions/https-everywhere@eff.org/background-scripts/update.js for ID in viewtube@extension disable-polymer-youtube@extension tortm-browser-button@jeremybenthum; do