youtube watched videos hider

like the name and it's simple and effective

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

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