UserUtils

General purpose DOM/GreaseMonkey library that allows you to register listeners for when CSS selectors exist, intercept events, create persistent & synchronous data stores, modify the DOM more easily and much more

目前为 2025-03-21 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.gf.qytechs.cn/scripts/472956/1557712/UserUtils.js

作者
Sv443
版本
9.3.0
创建于
2023-08-12
更新于
2025-03-21
大小
75.0 KB
许可证
MIT


BetterYTM

Lots of configurable layout and user experience improvements for YouTube Music™ and YouTube™

Available in these languages: 🇨🇳 CN, 🇬🇧 GB, 🇺🇸 US, 🇫🇷 FR, 🇩🇪 DE, 🇮🇳 IN, 🇯🇵 JP, 🇧🇷 BR, 🇪🇸 ES


FeaturesInstallationIntegrationsPluginsSupportPrivacyDevelopmentAttributionsDisclaimers


Features:

All of these can be toggled and configured in the configuration menu.

  • Layout & User Experience:
    • Show the approximate amount of likes and dislikes on songs (powered by returnyoutubedislike.com)
    • Open any song's lyrics on genius.com which generally has higher quality than YouTube's providers
    • Quick actions on songs in a queue, to quickly open their lyrics or remove them from the queue
    • Quickly scroll to the currently active song in the queue by clicking a button
    • Set a custom size and step resolution for the volume slider and show a percentage label next to it
    • Remember the time of the last played song to resume playback after reloading or reopening the tab
    • Improve clickability of song titles and thumbnails when wanting to open them in a new tab
    • Remove the tracking parameter from URLs in the share menu
    • Automatically close permanent notifications
  • Input & Interaction:
    • Auto-like songs and videos of your favorite creators on both YouTube and YouTube Music
    • Use arrow keys to skip forward or backward by a configurable amount of time
    • Press number keys to skip to a percentage of the currently playing song
    • Press a hotkey on a video/song to switch between YouTube and YouTube Music, while keeping the video time
    • Prevent the "unsaved data" popup that sometimes appears before leaving the site

... and these are just the notable features, there are many more smaller features, improvements and fixes!


To toggle and configure features, after installing the userscript, click the "BetterYTM" text under the logo to open the configuration menu.
If you disabled the watermark, you can still open it by clicking your avatar in the top right corner on YTM or through the left sidebar on YT.

My work relies on donations, so if you like this userscript please consider supporting development ❤️



Installation:

Note: by installing BetterYTM, you agree to the license terms, disclaimers and privacy notice.

  1. Install a userscript manager browser extension - I really recommend Violentmonkey (Firefox, Chrome, Edge).
    Other extensions are known to not work as expected, especially in isolated contexts like with FireMonkey or the Brave browser (more info here).

  2. Then, visit the Releases page and click the install button on the latest release.
    Note: the unsafeWindow grant is required due to limitations in some browsers (more info here).


If you want to install the latest (potentially unstable) development build, look for the latest pull request and click the install button there.
Please make sure to manually remove and reinstall the userscript once the next release is out to avoid any issues.




Integrations:

BetterYTM integrates with other extensions and tools to adjust their behavior and provide a smoother experience:

To find out more about these integrations, click here



Plugins:

BetterYTM supports plugin userscripts that can be installed in parallel and can make use of BetterYTM's pre-existing API.

Refer to the plugin creation guide for more information or check out the official plugin template for a quick start on creating a plugin.

Currently there are no available plugins, but you can submit an issue using the plugin submission template so it will be listed here.



Support:

If you have any questions, issues, or feature requests, please open an issue here.
You can also join my Discord server and ask your questions there or just hang out with other community members and me:

Discord



Privacy:

BetterYTM does not collect any data about you that isn't strictly necessary for its features to work.
Your userscript manager extension's storage API is used to store all settings and data locally on your device.
Open its settings to see and manage this data or remove the userscript to automatically delete all data.

BetterYTM makes use of external services and APIs to provide some of its features, which may collect data about you.
In every case, only the bare minimum of data is sent to these services and only when necessary.
This data includes the version of the userscript, your IP address, and the ID, title and author of the video you're watching.

Find more info about the privacy of these services here:



Development:

This project is based on my extensive template for making a userscript with TypeScript and many modern language and convenience features.
Check it out here if you want to make your own userscripts!

For information on how to set this project up locally, contribute to it, or create plugins for BetterYTM, see the contributing guide

Note: Each folder contains a README.md file with further information about the contents. If you want to know more about a specific part of the project, please refer to these files.



Attributions:

This userscript depends on these projects:

For development dependencies, please refer to devDependencies in package.json

Icons:



Disclaimers:

  • I am not affiliated with or endorsed by YouTube, Google, Alphabet, Genius, or anyone else.
  • I do not own any third party icons, I just re-host them here for better stability and availability.
  • I do not intend to ever collect any data about you, everything in this script is done and stored locally on your device or on the site the script runs on.
  • I can't guarantee this software is without flaws. If something bad happens, I don't accept blame. I do however accept bug reports and feature requests.





Made with ❤️ by Sv443
If you like this userscript, please consider supporting me

© 2022 Sv443 - AGPL-3.0

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址