diff options
author | Mark H Weaver <mhw@netris.org> | 2020-06-15 04:02:57 -0400 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2020-06-30 18:55:14 -0400 |
commit | 6909320776d9fdc7181db51d03596075534e2689 (patch) | |
tree | 32926f1360e125c116c45944c6b5ddfc990bc2ac /data/extensions/tortm-browser-button@jeremybenthum/lib/chrome | |
parent | d7acf32ad905a3382cb2353577a96d29aa58f589 (diff) |
Remove bundled tortm-browser-button extension.
This extension malfunctions with both IceCat and Firefox 68 ESR. It
tells the user that it's connected to Tor, but fails to route traffic
through it.
Remove this extension from IceCat, pending further investigation.
* data/extensions/tortm-browser-button@jeremybenthum: Remove.
* data/update-extensions.sh: Remove associated bits.
Diffstat (limited to 'data/extensions/tortm-browser-button@jeremybenthum/lib/chrome')
-rw-r--r-- | data/extensions/tortm-browser-button@jeremybenthum/lib/chrome/background.html | 9 | ||||
-rw-r--r-- | data/extensions/tortm-browser-button@jeremybenthum/lib/chrome/chrome.js | 65 |
2 files changed, 0 insertions, 74 deletions
diff --git a/data/extensions/tortm-browser-button@jeremybenthum/lib/chrome/background.html b/data/extensions/tortm-browser-button@jeremybenthum/lib/chrome/background.html deleted file mode 100644 index 12a37a9..0000000 --- a/data/extensions/tortm-browser-button@jeremybenthum/lib/chrome/background.html +++ /dev/null @@ -1,9 +0,0 @@ -<!DOCTYPE html>
-<html>
- <head><meta charset="utf-8"></head>
- <body>
- <script src="../proxy.js"></script>
- <script src="../config.js"></script>
- <script src="chrome.js"></script>
- </body>
-</html>
diff --git a/data/extensions/tortm-browser-button@jeremybenthum/lib/chrome/chrome.js b/data/extensions/tortm-browser-button@jeremybenthum/lib/chrome/chrome.js deleted file mode 100644 index f2963a6..0000000 --- a/data/extensions/tortm-browser-button@jeremybenthum/lib/chrome/chrome.js +++ /dev/null @@ -1,65 +0,0 @@ -var app = {};
-
-app.button = {set icon (o) {chrome.browserAction.setIcon(o)}};
-app.version = function () {return chrome.runtime.getManifest().version};
-app.homepage = function () {return chrome.runtime.getManifest().homepage_url};
-chrome.runtime.setUninstallURL(app.homepage() + "?v=" + app.version() + "&type=uninstall", function () {});
-
-app.tab = {
- "reload": function (url) {chrome.tabs.reload(function () {})},
- "open": function (url) {chrome.tabs.create({"url": url, "active": true})}
-};
-
-chrome.runtime.onInstalled.addListener(function (e) {
- window.setTimeout(function () {
- var previous = e.previousVersion !== undefined && e.previousVersion !== app.version();
- 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);
- config.welcome.lastupdate = Date.now();
- }
- }, 3000);
-});
-
-app.storage = (function () {
- var objs = {};
- window.setTimeout(function () {
- chrome.storage.local.get(null, function (o) {
- objs = o;
- var script = document.createElement("script");
- script.src = "../common.js";
- document.body.appendChild(script);
- });
- }, 300);
- /* */
- return {
- "read": function (id) {return objs[id]},
- "write": function (id, data) {
- var tmp = {};
- tmp[id] = data;
- objs[id] = data;
- chrome.storage.local.set(tmp, function () {});
- }
- }
-})();
-
-app.popup = (function () {
- var tmp = {};
- chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) {
- for (var id in tmp) {
- if (tmp[id] && (typeof tmp[id] === "function")) {
- if (request.path === 'popup-to-background') {
- if (request.method === id) tmp[id](request.data);
- }
- }
- }
- });
- /* */
- return {
- "receive": function (id, callback) {tmp[id] = callback},
- "send": function (id, data, tabId) {
- chrome.runtime.sendMessage({"path": 'background-to-popup', "method": id, "data": data});
- }
- }
-})();
|