Last active
September 1, 2021 13:45
-
-
Save jdelamater99/fcc4fae9502e469f69a89a56e7ec3c4e to your computer and use it in GitHub Desktop.
Youtube Subscription Feed Redirect
This file contains 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/* | |
// @version 0.6 | |
// @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