diff options
author | Amin Bandali <bandali@gnu.org> | 2020-04-08 01:37:46 -0400 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2020-04-08 01:37:46 -0400 |
commit | cc20957d47ce94ffb951a2b5bda9038cf5cb5d5e (patch) | |
tree | ea5f269034d1cd68d2b9d033e0b880081016a0e6 | |
parent | 3cb3e92e55c4f22aaa7e520fea1a1d8fdbef72b4 (diff) |
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.
-rw-r--r-- | data/extensions/tortm-browser-button@jeremybenthum/lib/chrome/chrome.js | 2 | ||||
-rw-r--r-- | data/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 index 805e525..f2963a6 100644 --- 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 index 1e9717e..cb0257e 100644 --- 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 |