Last active
August 4, 2025 14:39
-
-
Save jdelamater99/fcc4fae9502e469f69a89a56e7ec3c4e to your computer and use it in GitHub Desktop.
Youtube Subscription Feed Redirect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Youtube Subscription Feed Redirect | |
// @namespace http://jdel.us | |
// @description Redirect Youtube homepage to the Subscription feed page | |
// @include http://*.youtube.com/* | |
// @include https://*.youtube.com/* | |
// @include http://*.youtu.be/* | |
// @include https://*.youtu.be/* | |
// @exclude https://tv.youtube.com/* | |
// @exclude https://studio.youtube.com/* | |
// @version 0.8 | |
// @run-at document-start | |
// @grant none | |
// ==/UserScript== | |
let host = window.location.href; | |
let url = window.location.pathname; | |
console.log(window.location); | |
if (url == "/"){ | |
url = host + "feed/subscriptions"; | |
console.log(url); | |
window.location.replace(url); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment