优酷去短剧

根据剧集标签,定时检测,自动去除优酷短剧的展示

  1. // ==UserScript==
  2. // @name 优酷去短剧
  3. // @namespace http://tampermonkey.net/
  4. // @version 2024-09-21
  5. // @description 根据剧集标签,定时检测,自动去除优酷短剧的展示
  6. // @author jbts6
  7. // @match https://www.youku.com/channel/webtv/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=youku.com
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. function hideDuanju() {
  16. var cols = document.querySelectorAll('.g-col');
  17. cols.forEach(i => {
  18. var tag = i.querySelector('.categorypack_tagtext');
  19. if (tag && tag.innerText === '短剧') {
  20. i.style = 'display: none';
  21. }
  22. })
  23. }
  24. setTimeout(() => {
  25. hideDuanju();
  26. setInterval(hideDuanju, 5000);
  27. }, 2000);
  28.  
  29. // Your code here...
  30. })();

QingJ © 2025

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