diff options
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]; |