Crunchyroll Watchlist Hider

Hides watched animes so it is easier to spot new episodes

  1. // ==UserScript==
  2. // @name Crunchyroll Watchlist Hider
  3. // @version 2.2
  4. // @description Hides watched animes so it is easier to spot new episodes
  5. // @match https://www.crunchyroll.com/*
  6. // @icon https://www.google.com/s2/favicons?domain=crunchyroll.com
  7. // @grant none
  8. // @namespace https://gf.qytechs.cn/users/206408
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. // Your code here...
  15. function l(...args){
  16. console.log('[Watchlist]', ...args)
  17. }
  18.  
  19. function filter(){
  20. let cards = document.querySelectorAll(".watchlist-card--YfKgo")
  21. l(cards)
  22. for(let card of cards){
  23. let text = card.querySelector(".watchlist-card-subtitle--IROsU").textContent
  24. if(text.includes("Watch Again")){
  25. card.style.filter = 'brightness(0.15)'
  26. }
  27. }
  28. }
  29.  
  30.  
  31. //Observe changes to the DOM
  32. const observer = new MutationObserver((mutationsList, observer) => {
  33. if(window.location.href === 'https://www.crunchyroll.com/watchlist'){
  34. l(mutationsList)
  35.  
  36. for (const mutation of mutationsList) {
  37. if (mutation.addedNodes.length > 0) {
  38. l('Nodes added')
  39. filter();
  40. break; // Stop after the first relevant mutation to avoid redundant filtering
  41. }
  42. }
  43. }
  44. })
  45.  
  46. observer.observe(document, {subtree:true, childList:true, attributes:false})
  47. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址