I'm not interested in this fucking YouTube video!

I'm not interested in this fucking YouTube video! Fuck you!!!!!!! Fuck you to death!!!!

目前为 2021-12-01 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name I'm not interested in this fucking YouTube video!
  3. // @namespace http://www.iamnotinterestedinthisfuckingyoutubevideo.com
  4. // @version 1.0
  5. // @description I'm not interested in this fucking YouTube video! Fuck you!!!!!!! Fuck you to death!!!!
  6. // @match *://www.youtube.com/*
  7. // @run-at document-end
  8. // @license FuckYou
  9. // @require https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. if (/youtube\.com\/?$/.test(location.href)) {
  15. console.log("Youtube home page detected!");
  16.  
  17. setInterval((function () {
  18. let cells = $("ytd-rich-item-renderer.style-scope.ytd-rich-grid-row:not(.fucked)");
  19. if(cells.length == 0) {
  20. console.log("Can't find any cells to check");
  21. }
  22. cells.each(function(){
  23. let cell = $(this);
  24. let temp = cell.find("ytd-thumbnail");
  25. temp.hover(function(e){
  26. if(e.ctrlKey) {
  27. $(this).closest("ytd-rich-item-renderer").find("button.style-scope.yt-icon-button").click();
  28. setTimeout(function(){
  29. $("yt-formatted-string:contains('Not interested')").click();
  30. }, 50);
  31. }
  32. else if(e.altKey) {
  33. $(this).closest("ytd-rich-item-renderer").find("button.style-scope.yt-icon-button").click();
  34. setTimeout(function(){
  35. $(`yt-formatted-string:contains("Don't recommend channel")`).click();
  36. }, 50);
  37. }
  38. });
  39. });
  40. cells.addClass("fucked");
  41. }), 2000);
  42. }
  43.  
  44. if (/youtube\.com\/watch/.test(location.href)) {
  45. setInterval((function () {
  46. let cells = $("ytd-compact-video-renderer.style-scope.ytd-item-section-renderer:not(.fucked)");
  47. cells.each(function(){
  48. let cell = $(this);
  49. let temp = cell.find("ytd-thumbnail");
  50. temp.hover(function(e){
  51. if(e.ctrlKey) {
  52. $(this).closest("ytd-compact-video-renderer").find("button.style-scope.yt-icon-button").click();
  53. setTimeout(function(){
  54. $("yt-formatted-string:contains('Not interested')").click();
  55. }, 50);
  56. }
  57. else if(e.altKey) {
  58. $(this).closest("ytd-compact-video-renderer").find("button.style-scope.yt-icon-button").click();
  59. setTimeout(function(){
  60. $(`yt-formatted-string:contains("Don't recommend channel")`).click();
  61. }, 50);
  62. }
  63. });
  64. });
  65. cells.addClass("fucked");
  66. }), 2000);
  67. }
  68. })();