xiaoxiaoflood / firefox-scripts

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

Little problem with homepageURL in rebuild userchrome #25

Closed Mitezuss closed 4 years ago

Mitezuss commented 4 years ago

Hi, with press CTRL+MID the script is enable/disabled and opened the home page, so:

in line 82

    this.toggleScript(script);
    event.target.setAttribute('checked', script.isEnabled);

Need "else"

    else {
      this.toggleScript(script);
      event.target.setAttribute('checked', script.isEnabled);
    }