Skip to content

Commit dfed0ca

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

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/chrome/content/code/ApplicableList.js

Lines 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)