~/Tampermonkey Script Redirects Youtube Homepage to Subscriptions Feed
Mar 10, 2022
This Tampermonkey script checks if you visit the Youtube homepage and instantly redirects you to Subscriptions. This helps users see only channel subscriptions instead of the default homepage.
For the script to work, make sure you have Tampermonkey installed and enabled in your browser. The @match
parameters target both https://www.youtube.com/ and https://youtube.com.
Code:
|
|
This script executes on page load. If the pathname is /
or blank, it uses location.replace to change the URL without leaving a trace in the browser history.
Update the code if you need to handle other Youtube URLs or for specific behavior. Use Tampermonkey documentation for further customization tips.