Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dfed0ca

Browse filesBrowse files
committed
Add disabled attribute to Enable/Disable rules.
To decrease confusion about it being an active menuitem.
1 parent a77774f commit dfed0ca
Copy full SHA for dfed0ca

1 file changed

+3Lines changed: 3 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/chrome/content/code/ApplicableList.js‎

Copy file name to clipboardExpand all lines: src/chrome/content/code/ApplicableList.js
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ ApplicableList.prototype = {
113113
// and disable rules.
114114
var label = document.createElement('menuitem');
115115
label.setAttribute('label', strings.getString('https-everywhere.menu.enableDisable'));
116+
label.setAttribute('disabled', 'true');
117+
label.setAttribute('class', 'menuitem-non-iconic');
118+
label.setAttribute('style', 'color:#000000;');
116119
var label2 = false;
117120
if (!any_rules) {
118121
label2 = document.createElement('menuitem');

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.