[PREVIEW] 2.1.0 - Release Candidate 2
Pre-release
Pre-release
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()
andgetBestThumbnailUrl()
use the domainyoutube.com
to prevent cross-origin issues - Changed the way plugins are registered by making the
registerPlugin()
function the sole argument passed by thebytm: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 theconfirm()
,alert()
andprompt()
functions
- Plugin definition changes:
- Some intents were added or moved around in their order. See the new values in
src/types.ts -> enum PluginIntent
- Some intents were added or moved around in their order. See the new values in
- Added interface functions:
tl()
returns the translation for the provided translation key and provided localetlp()
returns the translation for the provided translation key, including pluralization identifier and provided locale
- Renamed event
bytm:initPlugins
tobytm: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.