Mirror of BetterYTM's source code https://github.com/Sv443/BetterYTM

Sv443 47d15f3fe0 feat: update pkg description & readme 1 年之前
.github e152162178 ref!: split single file into 7 1 年之前
.vscode 8bfc7daaf5 feat: change "change" events to "input" 1 年之前
dev f343155d74 feat: TS 1 年之前
dist 47d15f3fe0 feat: update pkg description & readme 1 年之前
resources fa5e2461b8 feat: new icon 1 年之前
src 47d15f3fe0 feat: update pkg description & readme 1 年之前
.eslintrc.json 206771fa69 feat: md loader + medium refactor 1 年之前
.gitignore ae4d0dc3ef fix: add test script 1 年之前
LICENSE.txt f1800d2c93 update license date 3 年之前
README.md 47d15f3fe0 feat: update pkg description & readme 1 年之前
changelog.md ec38e9b6b2 changelog 1 年之前
global.d.ts c4beb4dd8f ref: extract menu code into own file 1 年之前
package-lock.json fa5e2461b8 feat: new icon 1 年之前
package.json 47d15f3fe0 feat: update pkg description & readme 1 年之前
tsconfig.json f817a48218 feat: change to ESM 1 年之前
webpack.config.js f817a48218 feat: change to ESM 1 年之前

README.md

BetterYTM

Userscript that improves YouTube Music


Features:

  • Input:
    • Use arrow keys to skip forward or backward by 10 seconds
    • Switch between YouTube and YouTube Music on a video by pressing a hotkey (F9 by default)
    • TODO: Automatically dismiss "are you still there" popup
  • Layout:
    • Remove the "Upgrade to YT Music Premium" tab in the title bar
    • Set a custom size and step resolution for the volume slider
    • Quickly open any song's lyrics on genius.com

... and more!


To toggle features on or off, install the userscript, then click the "BetterYTM" text under the logo to open the settings menu.
Note that the page needs to be reloaded for the changes to take effect.



Installation:

Requires a userscript manager browser extension. I recommend the following:

Firefox: ViolentMonkey or TamperMonkey
Chrome: ViolentMonkey or TamperMonkey
Edge: ViolentMonkey or TamperMonkey


Once you have the extension, click this button to install the userscript:



Development:

Command Description
npm i Run once to install dependencies
npm run lint Lints the userscript with ESLint
npm run build Builds the userscript
npm run watch Watches, rebuilds and serves the userscript on port 8710, so it can be updated live if set up correctly in the userscript manager

When using ViolentMonkey, after running the command npm run watch, open http://localhost:8710/BetterYTM.user.js and select the Track local file option.
This makes it so the userscript automatically updates when the code changes.



Disclaimers:

  • I am not affiliated with 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 respective site's servers.
  • 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](https://github.com/Sv443) If you like this userscript, please consider [supporting me](https://github.com/sponsors/Sv443) © 2022 Sv443 - [MIT license](./LICENSE.txt)