Youtube Old Video Blocker

Remove older Youtube videos from subscription feed, edit to customize threshold. It does not work on "loading more" videos (the script is not re-run when the page changes) - so just don't scroll down...

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name     Youtube Old Video Blocker
// @grant    none
// @version  1.1
// @include  https://www.youtube.com/feed/subscriptions
// @require  http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
// @description Remove older Youtube videos from subscription feed, edit to customize threshold. It does not work on "loading more" videos (the script is not re-run when the page changes) - so just don't scroll down...
// @namespace https://greasyfork.org/users/91645
// ==/UserScript==

/*--- Use the jQuery contains selector to find content to remove.
    Beware that not all whitespace is as it appears.
*/

$("li.yt-shelf-grid-item").has("ul.yt-lockup-meta-info:contains('3 weeks ago')").css("visibility", "hidden");
$("li.yt-shelf-grid-item").has("ul.yt-lockup-meta-info:contains('4 weeks ago')").css("visibility", "hidden");
$("li.yt-shelf-grid-item").has("ul.yt-lockup-meta-info:contains('month ago')").css("visibility", "hidden");
$("li.yt-shelf-grid-item").has("ul.yt-lockup-meta-info:contains('months ago')").css("visibility", "hidden");