like the name and it's simple and effective
// ==UserScript== // @name youtube watched videos hider // @author ibtisam midlet // @namespace [email protected] // @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 // @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 All Rights Reserved // @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 r###lts(){ if (window.location.href.indexOf('r###lts?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('r###lts?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(); r###lts(); subscriptions(); watch(); general(); } }; if (window.location.href.indexOf('m.youtube.com') != -1 && window.location.href.indexOf('youtube.com/feed/history') <= 0 ) { $('ytm-thumbnail-overlay-r###me-playback-renderer .thumbnail-overlay-r###me-playback-progress').parent().parent().parent().parent().parent().parent().hide(); } }, 1500);