Skip to content

Commit

Permalink
fix disabling hiding settings
Browse files Browse the repository at this point in the history
  • Loading branch information
usyless committed Jan 5, 2025
1 parent 33a679c commit c45c8a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/element_hiding.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

// Apply new enabled styles
let style = '';
for (const setting in enabled) for (const s of StyleMap?.[setting]) style += s + '{display:none;}';
for (const setting in enabled) if (enabled[setting] === true) for (const s of StyleMap?.[setting]) style += s + '{display:none;}';
if (style.length > 0) {
const s = document.createElement('style');
s.setAttribute('usyStyle', '');
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Improvements for Twitter",
"version": "1.1.1.2",
"version": "1.1.1.3",
"author": "usy",
"homepage_url": "https://github.com/usyless/twitter-improvements",
"description": "Various helpful additions and changes for Twitter",
Expand Down
2 changes: 1 addition & 1 deletion src/manifest_chrome.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Improvements for Twitter",
"version": "1.1.1.2",
"version": "1.1.1.3",
"author": "usy",
"homepage_url": "https://github.com/usyless/twitter-improvements",
"description": "Various helpful additions and changes for Twitter",
Expand Down

0 comments on commit c45c8a8

Please sign in to comment.