您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
I'm not interested in this fucking YouTube video! Fuck you!!!!!!! Fuck you to death!!!!
// ==UserScript== // @name I'm not interested in this fucking YouTube video! // @namespace http://www.iamnotinterestedinthisfuckingyoutubevideo.com // @version 1.0 // @description I'm not interested in this fucking YouTube video! Fuck you!!!!!!! Fuck you to death!!!! // @match *://www.youtube.com/* // @run-at document-end // @license FuckYou // @require https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js // ==/UserScript== (function() { 'use strict'; if (/youtube\.com\/?$/.test(location.href)) { console.log("Youtube home page detected!"); setInterval((function () { let cells = $("ytd-rich-item-renderer.style-scope.ytd-rich-grid-row:not(.fucked)"); if(cells.length == 0) { console.log("Can't find any cells to check"); } cells.each(function(){ let cell = $(this); let temp = cell.find("ytd-thumbnail"); temp.hover(function(e){ if(e.ctrlKey) { $(this).closest("ytd-rich-item-renderer").find("button.style-scope.yt-icon-button").click(); setTimeout(function(){ $("yt-formatted-string:contains('Not interested')").click(); }, 50); } else if(e.altKey) { $(this).closest("ytd-rich-item-renderer").find("button.style-scope.yt-icon-button").click(); setTimeout(function(){ $(`yt-formatted-string:contains("Don't recommend channel")`).click(); }, 50); } }); }); cells.addClass("fucked"); }), 2000); } if (/youtube\.com\/watch/.test(location.href)) { setInterval((function () { let cells = $("ytd-compact-video-renderer.style-scope.ytd-item-section-renderer:not(.fucked)"); cells.each(function(){ let cell = $(this); let temp = cell.find("ytd-thumbnail"); temp.hover(function(e){ if(e.ctrlKey) { $(this).closest("ytd-compact-video-renderer").find("button.style-scope.yt-icon-button").click(); setTimeout(function(){ $("yt-formatted-string:contains('Not interested')").click(); }, 50); } else if(e.altKey) { $(this).closest("ytd-compact-video-renderer").find("button.style-scope.yt-icon-button").click(); setTimeout(function(){ $(`yt-formatted-string:contains("Don't recommend channel")`).click(); }, 50); } }); }); cells.addClass("fucked"); }), 2000); } })();