github openstyles/stylus 1.0.6
1.0.6: Auto-updates and more

latest releases: v1.5.46, v1.5.45, v1.5.44...
7 years ago
  • Automatic style update feature is enabled by default (24 hour interval) in new installations of Stylus.

    • New users may simply install styles on userstyles.org and receive updates automatically.
    • Existing users with the styles previously installed on userstyles.org site need to run a one-time update check in the style manager. It'll show a warning when it can't detect whether an updatable style was locally edited. In case you didn't edit such styles, just press the button "I didn't edit any styles!" to force an update check, then install the updates.
    • Locally edited styles are always preserved by being excluded from the automatic update until you explicitly force an update for the style in the style manager.
  • Minimum Chrome version is 49

    In addition to supporting all ES6 stuff we need and use, this also guarantees IndexedDB getAll method implemented in v48 so that all styles are retrieved from the DB in one fell swoop instead of being plucked one by one.

  • Middle-click, right-click, Ctrl-click (⌘-click) in the popup on a style name opens the editor

  • New UI layout in the style manager and options to toggle/customize it

  • Old bugs fixed:

    • Tabs currently open in the browser automatically [re]establish connection to the Stylus core immediately upon installation/self-update of the extension so there's no need to reload the pages to be able to add or toggle the styles.

    • @-moz-document bug present in Stylish-for-Chrome since the very beginning was fixed and a warning icon is displayed for such styles in the popup explaining that some/all sections of the style weren't applied. The bug itself is that Stylish-for-Chrome doesn't properly anchor the entire regexp: it only anchors the first and last alternation group. We do it correctly now, meaning some of the styles that were exploiting the buggy behavior won't work as they do in Stylish-for-Chrome. It's not a problem though, because they never worked in Firefox either, which implements @-moz-document matching correctly, just like we do.

      When such a style has no sections applied it's displayed in the popup grayed out in addition to the warning icon.

      To make the bug easier to fix for the style authors we have a RegExp tester in the style editor. It shows which of the currently open tabs are matched by the regexps. This status dynamically updates the list of tabs, also on modifying the regexp.

    • Popup correctly displays "can't style it" on new tab page overridden by another extension

    • Correct icon updates in Vivaldi

    • XML documents opened directly by browser can be styled

    • Styles are automatically re-applied on sites like mmo-champion affected by uBlock Origin Extra

  • Editor: CodeMirror 5.24

  • Editor: match-highlighter for the word (token) under cursor or selected text

  • Editor: context menu 'delete' for browsers without it

  • Editor: beautify-css is updated, now it preserves selection/cursor
     

  • Improved style caching

    Now the background code of Stylus doesn't rebuild the entire style cache for changes like toggling/editing/updating. Instead we update the cache in-place. Style requests are cached too. Regexps are compiled and cached. We don't send style code to tabs when it wasn't changed.

    The result is that the typical time spent per page navigation is close to 0 ms instead of 100ms.

  • Added <html id="stylus"> to all pages for style writers to target our extension specifically in addition to the id attribute on <body> that specifies the name of the page

  • Import in the style manager reports the added/changed/unchanged styles and provides an Undo button

  • Faster search in the style manager

Don't miss a new stylus release

NewReleases is sending notifications on new releases.