diff --git a/src/_locales/de/messages.json b/src/_locales/de/messages.json index 2bc9566e..9c12ac72 100644 --- a/src/_locales/de/messages.json +++ b/src/_locales/de/messages.json @@ -30,6 +30,8 @@ "html_about_twitter_title": { "message": "Twitter" }, "html_about_report_issues_prefix": { "message": "Wenn du Feedback hast oder einen Fehler melden möchtest, melde das auf der" }, "html_about_report_issues_suffix": { "message": ". Bitte prüfe vorab, ob deine Idee oder dein Fehler schon gemeldet wurde. Danke!" }, + "html_about_debugging_prefix": { "message": "Um die Protokollierung zu aktivieren oder Debugging-Flags festzulegen, gehen Sie auf die " }, + "html_about_debugging_suffix": { "message": "Debug-Seite." }, "html_about_the_github_issues_page": { "message": "GitHub Projektseite" }, "html_about_html2canvas": { "message": "html2canvas" }, "html_about_html2canvas_prefix": { "message": "Diese Erweiterung nutzt die" }, diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json index e1fc0921..cd4f4312 100644 --- a/src/_locales/en/messages.json +++ b/src/_locales/en/messages.json @@ -30,6 +30,8 @@ "html_about_twitter_title": { "message": "Twitter" }, "html_about_report_issues_prefix": { "message": "If you have feedback or would like to report an issue, you can do so on the" }, "html_about_report_issues_suffix": { "message": ". Please check to see if your idea or issue already exists before creating a new one. Thanks!" }, + "html_about_debugging_prefix": { "message": "To enable logging, or to set debugging flags, go to the " }, + "html_about_debugging_suffix": { "message": "debug page." }, "html_about_the_github_issues_page": { "message": "GitHub issues page" }, "html_about_html2canvas": { "message": "html2canvas" }, "html_about_html2canvas_prefix": { "message": "This extension uses the" }, diff --git a/src/_locales/ru/messages.json b/src/_locales/ru/messages.json index 873c3380..5fe5b430 100644 --- a/src/_locales/ru/messages.json +++ b/src/_locales/ru/messages.json @@ -30,6 +30,8 @@ "html_about_twitter_title": { "message": "Twitter" }, "html_about_report_issues_prefix": { "message": "Связаться с нами или сообщить о баге можно на" }, "html_about_report_issues_suffix": { "message": ". Пожалуйста. убедитесь что ваша идея или предложение не опубликованы ранее. Спасибо!" }, + "html_about_debugging_prefix": { "message": "Чтобы включить ведение журнала или установить флаги отладки, перейдите на " }, + "html_about_debugging_suffix": { "message": "страницу отладки." }, "html_about_the_github_issues_page": { "message": "странице предложений GitHub" }, "html_about_html2canvas": { "message": "html2canvas" }, "html_about_html2canvas_prefix": { "message": "Это расширение использует" }, diff --git a/src/_locales/zh_CN/messages.json b/src/_locales/zh_CN/messages.json index 5872dbb6..aee01029 100644 --- a/src/_locales/zh_CN/messages.json +++ b/src/_locales/zh_CN/messages.json @@ -30,6 +30,8 @@ "html_about_twitter_title": { "message": "Twitter" }, "html_about_report_issues_prefix": { "message": "如果您有反馈意见或想报告问题,可以在" }, "html_about_report_issues_suffix": { "message": ". 在创建新的想法或问题之前,请检查您的想法或问题是否存在。谢谢!" }, + "html_about_debugging_prefix": { "message": "要启用日志记录或设置调试标志,请转至" }, + "html_about_debugging_suffix": { "message": "调试页面。" }, "html_about_the_github_issues_page": { "message": "GitHub上进行" }, "html_about_html2canvas": { "message": "html2canvas" }, "html_about_html2canvas_prefix": { "message": "这个扩充元件使用 Niklas von Hertzen 撰写的" }, diff --git a/src/_locales/zh_TW/messages.json b/src/_locales/zh_TW/messages.json index 03663ea1..d90e7bff 100644 --- a/src/_locales/zh_TW/messages.json +++ b/src/_locales/zh_TW/messages.json @@ -30,6 +30,8 @@ "html_about_twitter_title": { "message": "Twitter" }, "html_about_report_issues_prefix": { "message": "如果您有建議或想回報問題,可以在" }, "html_about_report_issues_suffix": { "message": ". 在建立新的想法或問題之前,請檢查您的想法或問題是否存在。謝謝!" }, + "html_about_debugging_prefix": { "message": "要啟用日誌記錄或設置調試標誌,請轉至" }, + "html_about_debugging_suffix": { "message": "調試頁面。" }, "html_about_the_github_issues_page": { "message": "GitHub 上進行" }, "html_about_html2canvas": { "message": "html2canvas" }, "html_about_html2canvas_prefix": { "message": "這個擴充功能使用 Niklas von Hertzen 撰寫的" }, diff --git a/src/about.html b/src/about.html index 034e54dc..958f5c3c 100644 --- a/src/about.html +++ b/src/about.html @@ -53,6 +53,11 @@

+

+ + +

+

diff --git a/src/debug.html b/src/debug.html index e5f8c282..ccdc8a9d 100644 --- a/src/debug.html +++ b/src/debug.html @@ -18,7 +18,8 @@ useAlternateScreenCaptureLib:  |  disableTabChecks: - +  |  + claim all suspended tabs


diff --git a/src/js/debug.js b/src/js/debug.js index a3fbb01d..dfd51758 100644 --- a/src/js/debug.js +++ b/src/js/debug.js @@ -107,6 +107,15 @@ gsStorage.setOptionAndSync(gsStorage.DISABLE_TAB_CHECKS, newVal); } ); + document.getElementById('claimSuspendedTabs').onclick = async function(e) { + const tabs = await gsChrome.tabsQuery(); + for (const tab of tabs) { + if (gsUtils.isSuspendedTab(tab, true) && tab.url.indexOf(chrome.runtime.id) < 0) { + const newUrl = tab.url.replace(gsUtils.getRootUrl(tab.url), chrome.runtime.id); + await gsChrome.tabsUpdate(tab.id, { url: newUrl}); + } + } + }; var extensionsUrl = `chrome://extensions/?id=${chrome.runtime.id}`; document