您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
removes videos named [Private video] or [Deleted video] if they have no timestamp from playlists you edit, including your Liked videos list.
// ==UserScript== // @name Youtube Deleted/Private video unliker/remover // @namespace whatever // @version 1 // @description removes videos named [Private video] or [Deleted video] if they have no timestamp from playlists you edit, including your Liked videos list. // @author <[email protected]> // @match https://www.youtube.com/playlist?list=* // @grant none // @homepage https://github.com/nazgand/userscripts // ==/UserScript== function trydelete() { const badVideo=document.querySelector('tr.pl-video[data-title="[Private video]"],tr.pl-video[data-title="[Deleted video]"]'); if (badVideo !== null) { if (badVideo.querySelector('div.timestamp')===null) { badVideo.querySelector('button.pl-video-edit-remove-liked-video,button.pl-video-edit-remove').click(); setTimeout(trydelete, 200); } else { //The scripter was too lazy to deal with this unlikely error. } } else { tryload(); } } function tryload() { const btnLoadMore = document.querySelector('button.load-more-button'); if (btnLoadMore !== null) { btnLoadMore.click(); setTimeout(trydelete, 900); } } trydelete();