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/config.js | |
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/config.js')
-rw-r--r-- | data/extensions/tortm-browser-button@jeremybenthum/lib/config.js | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/data/extensions/tortm-browser-button@jeremybenthum/lib/config.js b/data/extensions/tortm-browser-button@jeremybenthum/lib/config.js deleted file mode 100644 index 7d0a801..0000000 --- a/data/extensions/tortm-browser-button@jeremybenthum/lib/config.js +++ /dev/null @@ -1,48 +0,0 @@ -var config = {};
-
-config.url = {
- "tor": "https://check.torproject.org/",
- "ip": "https://webbrowsertools.com/ip-address/",
- "github": "https://github.com/jeremy-jr-benthum/tor-button/releases",
-};
-
-config.welcome = {
- set lastupdate (val) {app.storage.write("lastupdate", val)},
- get lastupdate () {return app.storage.read("lastupdate") !== undefined ? app.storage.read("lastupdate") : 0}
-};
-
-config.addon = {
- set state (val) {app.storage.write("state", val)},
- set whitelist (val) {app.storage.write("whitelist", val)},
- get whitelist () {return app.storage.read("whitelist") || ''},
- get state () {return app.storage.read("state") !== undefined ? app.storage.read("state") : "OFF"}
-};
-
-config.request = function (url, callback) {
- var xhr = new XMLHttpRequest(); - try {
- xhr.onload = function () {xhr.status >= 200 && xhr.status < 304 ? callback("ok") : callback("error")};
- xhr.open("HEAD", url, true);
- xhr.onerror = function () {callback("error")};
- xhr.ontimeout = function () {callback("error")};
- xhr.send('');
- } catch (e) {callback("error")}
-};
-
-config.notifications = (function () {
- chrome.notifications.onClicked.addListener(function (id) {
- if (id === config.notifications.id) app.tab.open(app.homepage() + "#faq");
- });
- /* */
- return {
- "id": "onion-button-notifications-id",
- "create": function (message) {
- chrome.notifications.create(config.notifications.id, {
- "type": "basic",
- "message": message,
- "title": "Onion Browser Button",
- "iconUrl": /Firefox/.test(navigator.userAgent) ? "data/icons/64.png" : chrome.runtime.getURL("data/icons/64.png")
- }, function () {});
- }
- }
-})();
|