diff --git a/assets/assets.json b/assets/assets.json index a1a99090bc325..6f9d4f6dce709 100644 --- a/assets/assets.json +++ b/assets/assets.json @@ -608,7 +608,8 @@ "title": "POL: Official Polish filters for AdBlock, uBlock Origin & AdGuard", "lang": "pl", "contentURL": "https://raw.githubusercontent.com/MajkiIT/polish-ads-filter/master/polish-adblock-filters/adblock.txt", - "supportURL": "https://github.com/MajkiIT/polish-ads-filter/issues" + "supportURL": "https://github.com/MajkiIT/polish-ads-filter/issues", + "instructionURL": "https://github.com/MajkiIT/polish-ads-filter#polish-filters-for-adblock-ublock-origin--adguard" }, "RUS-0": { "content": "filters", diff --git a/src/_nano-locales/en/messages.nano.js b/src/_nano-locales/en/messages.nano.js index bc52ee73cde5b..ec0e969f9d01a 100644 --- a/src/_nano-locales/en/messages.nano.js +++ b/src/_nano-locales/en/messages.nano.js @@ -324,14 +324,26 @@ }, // Popup tooltips + "popupCacheControlPrompt": { + "message": "cache control", + "description": "The cache control strip name" + }, + "popupTipOpenFirewallPane": { + "message": "Toggle the firewall pane", + "description": "Tooltip for toggle firewall pane button" + }, + "popupTipRefreshButton": { + "message": "Click to refresh this page.\n\nCtrl+click to refresh this page while bypassing cache.", + "description": "English: Click to refresh this page.\n\nCtrl+click to refresh this page while bypassing cache." + }, // TODO 2018-02-02: Beta stage, do not translate! "popupTipForceEnableScroll": { "message": "(beta) Enter force scroll mode (will break layout)", - "description": "Force scroll button" + "description": "Tooltip for force scroll button" }, "popupTipBugReporter": { "message": "(beta) Open the bug reporter", - "description": "Bug reporter button" + "description": "Tooltip for bug reporter button" }, // Based on message of about page diff --git a/src/_nano-locales/zh_CN/messages.nano.js b/src/_nano-locales/zh_CN/messages.nano.js index 063145a7485c4..a806e41907fb4 100644 --- a/src/_nano-locales/zh_CN/messages.nano.js +++ b/src/_nano-locales/zh_CN/messages.nano.js @@ -170,15 +170,29 @@ }, // Popup tooltips + "popupCacheControlPrompt": { + "message": "缓存控制", + "description": "The cache control strip name" + }, + "popupTipOpenFirewallPane": { + // TODO 2018-02-10: There must be a better translation, but translated like so to stay + // consistent with other strings of uBlock Origin + "message": "是否显示防火墙边窗", + "description": "Tooltip for toggle firewall pane button" + }, + "popupTipRefreshButton": { + "message": "单击:刷新当前页面\n\nCtrl + 单击:无视缓存并刷新当前页面", + "description": "English: Click: refresh this page.\n\nCtrl+click: refresh this page bypassing cache." + }, // TODO 2018-02-02: Beta stage, do not translate! /* "popupTipForceEnableScroll": { "message": "进入临时强制滚动模式(会破坏布局)", - "description": "Force scroll button" + "description": "Tooltip for force scroll button" }, "popupTipBugReporter": { "message": "打开问题汇报器", - "description": "Bug reporter button" + "description": "Tooltip for bug reporter button" }, */ diff --git a/src/css/popup.css b/src/css/popup.css index ea0f7c3f30b79..7cf4b6d63802b 100644 --- a/src/css/popup.css +++ b/src/css/popup.css @@ -26,7 +26,12 @@ h2 { background-color: #eee; border: 0; color: #666; + + /* Patch 2018-02-10: Add explicit button for openeing firewall */ + /* cursor: pointer; + */ + font-size: 100%; font-weight: normal; padding: 0.2em; @@ -124,11 +129,15 @@ p { #switch .fa { color: #0046ff; cursor: pointer; - font-size: 700%; + + /* Patch 2018-02-10: Make switch button smaller */ + font-size: 600%; + margin: 0; } #switch .fa:hover { - opacity: 0.9; + /* Patch 2018-02-10: Adjust hover color */ + opacity: 0.8; } body.off #switch .fa { color: #ccc; @@ -139,7 +148,7 @@ body.off #switch .fa { } #basicTools { /* Patch 2018-02-01: Make it two rows */ - margin-bottom: 1.0em; + margin-bottom: 1.2em; } .tool:first-child { margin-left: 0; @@ -148,8 +157,9 @@ body.off #switch .fa { color: #aaa; cursor: pointer; visibility: hidden; + /* Patch 2018-02-01: Adjust spacing for two rows basic tools */ - margin-left: 1.4em; + margin-left: 0.6em; min-width: 1em; padding: 0 0.2em; @@ -220,26 +230,19 @@ body[dir="rtl"] #extraTools > span > span.badge { color: #333; } -#refresh { - background-color: #ffe; - border: 1px solid #ddc; - border-radius: 4px; - color: #888; - cursor: pointer; - display: none; - font-size: 3.5em; - left: 4px; - line-height: 1; - padding: 4px 8px; - position: absolute; - right: 4px; - text-align: center; - } +/* Patch 2018-02-10: Add explicit button for openeing firewall */ +#nanoCacheControlStrip { + font-size: 2em; + margin: 0px; + } +#nanoCacheControlStrip .tool { + margin-left: 0px; +} body.dirty #refresh { - display: block; + color: red; } -body.dirty #refresh:hover { - color: black; +body #refresh:hover { + color: #444;; } #tooltip { diff --git a/src/js/popup.js b/src/js/popup.js index 5ba4b473b64dd..bb32d7435aefd 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -1095,11 +1095,15 @@ var onHideTooltip = function() { uDom('#switch').on('click', toggleNetFilteringSwitch); uDom('#gotoZap').on('click', gotoZap); + // Patch 2018-02-01: Add force enable scroll uDom('#forceEnableScroll').on('click', forceEnableScroll); uDom('#gotoPick').on('click', gotoPick); - uDom('h2').on('click', toggleFirewallPane); + + // Patch 2018-02-10: Move openeing firewall pane to a explicit button + uDom('#nanoFirewallPaneToggle').on('click', toggleFirewallPane); + uDom('#refresh').on('click', reloadTab); uDom('.hnSwitch').on('click', toggleHostnameSwitch); uDom('#saveRules').on('click', saveFirewallRules); diff --git a/src/popup.html b/src/popup.html index cd33531a69dc1..45e96e0ead96c 100644 --- a/src/popup.html +++ b/src/popup.html @@ -17,6 +17,8 @@

+ + @@ -33,11 +35,17 @@

 

 

?

-

 

?

+ + +

 

+

+ +

+