Youtube Show Uploads Only

Shows only uploads on subscription pages

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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)
});