A browser extension that sets the quality of YouTube videos according to the user's preference, based on the video's FPS. Available for:
Made by avi12
Powered by Plasmo
You can suggest a feature or report a bug
Due to the way the browsers handle extensions, when an extension receives an update, content scripts in previously-open web pages cannot use the Storage API until the user reloads them, which means that if YTHD received an update and the user attempts to change a setting, he must reload the such pages for the settings to take effect
To provide a smooth user experience, I decided to use the last settings that were fetched
You can translate the extension to your own language by filling this form Filling will grant you access to a Google Spreadsheet via email, in which you can contribute your translations
pnpm i
pnpm dev
pnpm build:firefox
pnpm run-chromium
pnpm run-chromium:rtl
pnpm run-edge:windows
As of September 30th, 2023, Opera 102's installer automatically sets itself as the default browser, and therefore I recommend installing it on a virtual machine like Windows Sandbox Of course, if you decide to go through this route, you'll need to build & pack every time you modify a script
pnpm run-opera:windows
pnpm run-firefox
emulator @DEVICE_NAME
adb devices
Then:
set id=ID & pnpm build-pack:test-push
pnpm build-pack:test; `
$zip = "chrome-mv3-prod.zip"; `
$destAndroid = "/storage/emulated/0/TestYTHD/$zip"; `
$ID = "emulator-####"; `
adb -s $ID shell rm $destAndroid; `
adb -s $ID push "build/$zip" $destAndroid;
where you assign $ID
with the emulator ID
chrome://inspect/#devices
adb shell pm grant org.mozilla.firefox android.permission.READ_EXTERNAL_STORAGE
adb devices
dev:firefox
pnpm run-firefox:android --android-device=ID
where you replace ID
with the emulator ID
run-firefox:android
, find the remote Firefox debugger port (search "TCP port")about:debugging#/setup
in Firefoxlocalhost:PORT
localhost:PORT
, click Connect and then click on that list itemdev
youtube-auto-hd/build
on your file systemchrome-mv3-dev
onto the extensions pagedev:firefox
youtube-auto-hd/build/firefox-mv2-dev/manifest.json
pnpm build-pack
pnpm build-pack:firefox
Feel free to contribute! Keep in mind that the license I chose is GPL v3. If you want to fork, make sure to credit Avi and link to this repository.