diff options
author | papush | 2021-08-29 14:46:54 +0200 |
---|---|---|
committer | papush | 2021-08-29 14:46:54 +0200 |
commit | 987993e96af6e07174ba8003bb205394f4d1d3e0 (patch) | |
tree | eaba2e70b164792358d14fbf3e647f1be9b17d77 /chrome/js/browserOverlay.js | |
parent | a2107f763aae71c6640575777c66ca68916a3b65 (diff) |
remove unused RedirectorOverlay methods
Diffstat (limited to 'chrome/js/browserOverlay.js')
-rw-r--r-- | chrome/js/browserOverlay.js | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/chrome/js/browserOverlay.js b/chrome/js/browserOverlay.js index d833ccf..1d3efab 100644 --- a/chrome/js/browserOverlay.js +++ b/chrome/js/browserOverlay.js @@ -42,27 +42,6 @@ var RedirectorOverlay = { this.refreshUI(); }, - showContextMenu : function(event) { - if (gContextMenu.onLink) { - document.getElementById("redirector-context").label = this.strings.getString('addLinkUrl'); - } else { - document.getElementById("redirector-context").label = this.strings.getString('addCurrentUrl'); - } - }, - - onContextMenuCommand: function(event) { - var redirect = new Redirect(window.content.location.href, window.content.location.href); - if (gContextMenu.onLink) { - redirect.redirectUrl = gContextMenu.link.toString(); - } - - gBrowser.selectedTab = gBrowser.addTab("chrome://redirector/content/redirector.html"); - }, - - onMenuItemCommand: function(event) { - this.openSettings(); - }, - refreshUI: function() { let button = document.getElementById("redirector-button"); let item = document.getElementById("redirector-enabled-item"); @@ -84,17 +63,6 @@ var RedirectorOverlay = { gBrowser.selectedTab = gBrowser.addTab("chrome://redirector/content/redirector.html"); }, - statusBarClick : function(event) { - Redirector.debug('REDIRECTOR: click'); - var LEFT = 0, RIGHT = 2; - - if (event.button == LEFT) { - RedirectorOverlay.toggleEnabled(); - } else if (event.button == RIGHT) { - this.openSettings(); - } - }, - updateTooltip: function(event) { AddonManager.getAddonByID("url-rewriter@papush", (addon) => { let label = event.target.getElementsByClassName("redirector-tooltip-version")[0]; |