xiaoxiaoflood / firefox-scripts

userChromeJS / autoconfig.js and extensions
Mozilla Public License 2.0
1.02k stars 86 forks source link

`StyloaiX` have bug with reload button #107

Closed krystian3w closed 2 years ago

krystian3w commented 2 years ago

If I disable works StyloaiX (by his option #styloaix-enabled) and click reload CSS #styloaix-reload-all that script have broken button "disable" (no longer disables reloaded css).

So I wrote CSS workaround to disable bad click by mouse (keyboard can still active option and accept by space/enter to break script):

      }
          #styloaix-enabled[label="Disabled"] ~ #styloaix-reload-all {
            pointer-events: none;
            color: GrayText
          }

beetween lines: https://github.com/xiaoxiaoflood/firefox-scripts/blob/8274daf14f5182a9598d42198592de4ce88a51b8/chrome/styloaix.uc.js#L371-L372

Maybe possible add inject to context menu new one [label="Disabled"] / [disabled] to cover keyboards too.

xiaoxiaoflood commented 2 years ago

Thanks for reporting. This should be fixed now.