Skip to content

[PREVIEW] 2.1.0 - Release Candidate 2

Pre-release
Pre-release
Compare
Choose a tag to compare
@Sv443 Sv443 released this 08 Sep 16:56
· 690 commits to develop since this release
Click to expand the changes since rc1
  • Changes:
    • Created a prompt dialog to replace the browser's native dialogs, which could accidentally be turned off by the user and would softlock the script
  • Internal Changes:
    • Updated the UserUtils library to v7.2.1
    • Made getThumbnailUrl() and getBestThumbnailUrl() use the domain youtube.com to prevent cross-origin issues
    • Changed the way plugins are registered by making the registerPlugin() function the sole argument passed by the bytm:registerPlugin event. Call this function synchronously to register your plugin.
    • Plugins will now load at an earlier point in BetterYTM's startup sequence. This means that plugins can now be initialized before the script's features are fully initialized and the DOM is ready. Use site events to wait for the right moment to interact with the page.
    • Added new components:
      • showPrompt() to show a styled dialog that replaces the confirm(), alert() and prompt() functions
    • Plugin definition changes:
      • Some intents were added or moved around in their order. See the new values in src/types.ts -> enum PluginIntent
    • Added interface functions:
      • tl() returns the translation for the provided translation key and provided locale
      • tlp() returns the translation for the provided translation key, including pluralization identifier and provided locale
    • Renamed event bytm:initPlugins to bytm:registerPlugin to be more consistent


This version is almost finished but may still contain a few tiny bugs.
It is highly recommended you fully remove the script and reinstall it manually once the update is released.

See pull request for more info