Youtube Show Uploads Only

Shows only uploads on subscription pages

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Youtube Show Uploads Only
// @namespace    http://userscripts.org/users/zackton
// @description  Shows only uploads on subscription pages
// @include      *.youtube.com/*
// @grant        none
// @version      1.3.7
// ==/UserScript==

window.setTimeout(UploadsOnly,0)

function UploadsOnly() {
console.log('test2');
var currenturl = document.URL;
console.log(currenturl);

var load = currenturl.indexOf("feed/");
var add = currenturl.indexOf("/u");

if (load===-1) {} 
else if (add===-1) { 
window.location = document.URL+"/u";
}

}
// Add script to the page
document.addEventListener('DOMContentLoaded', function(e) {
    var s = document.createElement('script');
    s.textContent = "(" + UploadsOnly.toString() + ')();';
    document.head.appendChild(s)
});