diff --git a/_locales/de/messages.json b/_locales/de/messages.json index 54a66b0..86eeb34 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -43,6 +43,10 @@ "message": "CanvasBlocker wurde aktualisiert. Wenn Sie diese Seite in Zukunft erreichen wollen und noch kein Lesezeichen erstellt haben, erstellen Sie bitte eines.", "description": "" }, + "openInTab": { + "message": "In separatem Tab öffnen", + "description": "" + }, "section_asking": { "message": "Nachfragen", diff --git a/_locales/en/messages.json b/_locales/en/messages.json index fbeb4a5..b188b5e 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -43,6 +43,10 @@ "message": "CanvasBlocker was updated. If you want to be able to access this page in the future and have not bookmarked it, please bookmark it.", "description": "" }, + "openInTab": { + "message": "Open in separate tab", + "description": "" + }, "section_asking": { "message": "Asking", diff --git a/options/options.css b/options/options.css index e18492c..9b13d3c 100644 --- a/options/options.css +++ b/options/options.css @@ -188,6 +188,17 @@ td.hideColumn { background-image: url(notVisible.svg); } +.optionsLink { + text-align: right; + font-size: 0.8em; +} +.optionsLink a { + text-decoration: none; +} +.optionsLink a:hover { + text-decoration: underline; +} + .version { text-align: right; color: gray; diff --git a/options/options.js b/options/options.js index 763bc3d..e130fce 100644 --- a/options/options.js +++ b/options/options.js @@ -71,6 +71,16 @@ document.body.classList.add("standalone"); } + else { + const linkDiv = document.createElement("div"); + linkDiv.className = "optionsLink"; + const link = document.createElement("a"); + link.href = window.location.href; + link.target = "_blank"; + link.textContent = browser.i18n.getMessage("openInTab"); + linkDiv.appendChild(link); + head.appendChild(linkDiv); + } }); var table = document.createElement("table"); diff --git a/releaseNotes.txt b/releaseNotes.txt index 05088f0..70ae030 100644 --- a/releaseNotes.txt +++ b/releaseNotes.txt @@ -4,6 +4,7 @@ Version 0.5.3: new features: - display version in options page + - added link to open options page in separate tab fixes: - CSP did not work properly for worker-src