diff --git a/canvasblocker.xpi b/canvasblocker.xpi index c9c4db2..66dce31 100644 Binary files a/canvasblocker.xpi and b/canvasblocker.xpi differ diff --git a/lib/main.js b/lib/main.js index 47d8931..81ac91a 100644 --- a/lib/main.js +++ b/lib/main.js @@ -149,7 +149,7 @@ if (prefs.showNotifications && !ignoreList.match(contentURL)){ var url = contentURL.href; var domain = contentURL.hostname; - var message = _("fakedReadout").replace(/\{url\}/g, url); + var message = _("fakedReadout").replace(/\{url\}/g, domain); var tab = tabUtils.getTabForId(worker.tab.id); var tabBrowser = tabUtils.getTabBrowserForTab(tab); @@ -162,6 +162,15 @@ } else { var buttons = [ + { + label: _("displayFullURL"), + accessKey: "", + callback: function(){ + browser.contentWindow.alert(url); + // only way to prevent closing... see https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Method/appendNotification#Notification_box_events + throw new Error("Do not close notification."); + } + }, { label: _("displayCallingStack"), accessKey: "", diff --git a/locale/de-DE.properties b/locale/de-DE.properties index 2bdddd9..9d3e436 100644 --- a/locale/de-DE.properties +++ b/locale/de-DE.properties @@ -47,6 +47,7 @@ stackEntryOutput= {url} Zeile {line} Spalte {column} fakedReadout = Auslese vorgetäuscht auf {url} settings = Einstellungen displayCallingStack = Aufrufestack anzeigen +displayFullURL = URL anzeigen whitelistURL = erlaube URL whitelistDomain = erlaube Domain disableNotifications = Benachrichtigungen deaktivieren diff --git a/locale/en-US.properties b/locale/en-US.properties index 7fb3725..e2399a7 100644 --- a/locale/en-US.properties +++ b/locale/en-US.properties @@ -47,6 +47,7 @@ stackEntryOutput= {url} line {line} column {column} fakedReadout = Faked readout on {url} settings = settings displayCallingStack = display calling stack +displayFullURL = display full URL whitelist = whitelist whitelistURL = whitelist URL whitelistDomain = whitelist domain