Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit a52f5bf

Browse files
committed
Merge branch 'master' of github.com:EFForg/https-everywhere
2 parents 569e802 + f333a7b commit a52f5bf

25 files changed

+1835
-592
lines changed

chromium/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"*://*/*",
5252
"ftp://*/*"
5353
],
54-
"version": "2019.5.2.1",
54+
"version": "2019.5.6.1",
5555
"web_accessible_resources": [
5656
"/pages/cancel/index.html"
5757
]

chromium/pages/popup/ux.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
function toggleRuleLine(event) {
1414
getTab(activeTab => {
1515
const set_ruleset = {
16-
active: event.target.parentNode.firstChild.checked,
17-
name: event.target.innerText,
16+
active: event.target.checked,
17+
name: event.target.parentNode.innerText,
1818
tab_id: activeTab.id,
1919
};
2020

@@ -111,6 +111,9 @@ function appendRulesToListDiv(rulesets, list_div, ruleType) {
111111
checkbox.checked = ruleset.active;
112112
text.innerText = ruleset.name;
113113

114+
// Add listener to capture the toggle event
115+
line.addEventListener("click", toggleRuleLine);
116+
114117
if (ruleset.note && ruleset.note.length) {
115118
line.title = ruleset.note;
116119

@@ -151,10 +154,11 @@ function updateEnabledDisabledUI() {
151154
// Hide or show the rules sections
152155
if (item.globalEnabled) {
153156
document.body.className = ""
157+
e('onoffswitch_label').innerText = chrome.i18n.getMessage("menu_globalEnable");
154158
showHttpNowhereUI();
155159
} else {
156160
document.body.className = "disabled";
157-
e('onoffswitch_label').innerText = 'HTTPS Everywhere is OFF';
161+
e('onoffswitch_label').innerText = chrome.i18n.getMessage("menu_globalDisable");
158162
}
159163
});
160164
}
@@ -187,9 +191,6 @@ function listRules(activeTab) {
187191

188192
appendRulesToListDiv(stableRules, e("StableRules"), 'stable');
189193
appendRulesToListDiv(unstableRules, e("UnstableRules"), 'unstable');
190-
191-
// Add listener to capture the toggle event
192-
e("add-new-rule-button").addEventListener("click", toggleRuleLine);
193194
}
194195

195196
// Only show the "Add a rule" section if we're on an HTTPS page

src/Changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2019.5.6
2+
* UI tweaks for spacing and font sizes
3+
* Fix reload bug
4+
* Patch for offline release channel
5+
16
2019.5.2
27
* UI changes in extension menu (#17854)
38
* EASE interstitial UI tweaks (#17347)

0 commit comments

Comments
 (0)