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...

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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");