Skip to content

Instantly share code, notes, and snippets.

@jdelamater99
Last active September 1, 2021 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdelamater99/fcc4fae9502e469f69a89a56e7ec3c4e to your computer and use it in GitHub Desktop.
Save jdelamater99/fcc4fae9502e469f69a89a56e7ec3c4e to your computer and use it in GitHub Desktop.
Youtube Subscription Feed Redirect
// ==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