NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name youtube watched videos hider
// @author ibtisam midlet
// @namespace youtube-watched-videos-hider-userscript-bystorebitid@gmail.com
// @icon https://github.com/ibtisammidlet/youtube-watched-videos-hider/raw/master/screenshot.png
// @include *.youtube.com/*
// @description like the name and it's simple and effective
// @version 2.0
// @updateURL https://github.com/ibtisammidlet/youtube-watched-videos-hider/raw/master/youtube-watched-videos-hider.meta.js
// @downloadURL https://github.com/ibtisammidlet/youtube-watched-videos-hider/raw/master/youtube-watched-videos-hider.user.js
// @supportURL https://justinmidlet.blogspot.com/2019/05/youtube-watched-videos-hider.html
// @date 2020-03-24
// @homepage https://justinmidlet.blogspot.com/2019/05/youtube-watched-videos-hider.html
// @license MIT
// @require https://code.jquery.com/jquery-3.4.0.min.js
// @grant GM_addStyle
// ==/UserScript==
//** the interval for the all script
setInterval(function(){
if (window.location.href.indexOf('www.youtube.com/playlist?list=') != -1) {
$('#overlays.ytd-thumbnail #progress').parent().parent().parent().parent().parent().parent().parent().hide();
} else {
if (window.location.href.indexOf('www.youtube.com') != -1) {
function channel(){
if (window.location.href.indexOf('channel/') != -1) {
$('#overlays.ytd-thumbnail #progress').parent().parent().parent().parent().parent().parent().hide();
}
};
function results(){
if (window.location.href.indexOf('results?search_query=') != -1) {
$('#overlays.ytd-thumbnail #progress').parent().parent().parent().parent().parent().parent().hide();
}
};
function subscriptions(){
if (window.location.href.indexOf('www.youtube.com/feed/subscriptions') != -1) {
$('#overlays.ytd-thumbnail #progress').parent().parent().parent().parent().parent().parent().hide();
}
};
function watch(){
if (window.location.href.indexOf('www.youtube.com/watch?v=') != -1) {
$('#overlays.ytd-thumbnail #progress').parent().parent().parent().parent().parent().parent().hide();
$("#playlist #overlays.ytd-thumbnail #progress").parent().parent().parent().parent().parent().parent().parent().parent().hide();
}
};
function general(){
if (window.location.href.indexOf('results?search_query=') <= 0 && window.location.href.indexOf('channel/') <= 0 && window.location.href.indexOf('www.youtube.com/feed/subscriptions') <= 0 && window.location.href.indexOf('www.youtube.com/watch?v=') <= 0 && window.location.href.indexOf('www.youtube.com/feed/history') <= 0 ) {
$('#overlays.ytd-thumbnail #progress').parent().parent().parent().parent().parent().parent().parent().parent().hide();
}
};
channel();
results();
subscriptions();
watch();
general();
}
};
if (window.location.href.indexOf('m.youtube.com') != -1 && window.location.href.indexOf('youtube.com/feed/history') <= 0 ) {
$('ytm-thumbnail-overlay-resume-playback-renderer .thumbnail-overlay-resume-playback-progress').parent().parent().parent().parent().parent().parent().hide();
}
}, 1500);