Show Only C-Drama

Tries to remove all but C-Drama from iq.com when browsing

  1. // ==UserScript==
  2. // @name Show Only C-Drama
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description Tries to remove all but C-Drama from iq.com when browsing
  6. // @author pfn0#0001
  7. // @license MIT
  8. // @match https://www.iq.com/*
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=iq.com
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. document.addEventListener("load", x => {
  16. document.querySelectorAll("[class=intl-mod-vip-ad-wrap]").forEach(x => x.parentNode.parentNode.removeChild(x.parentNode));
  17. var f = document.querySelector(".qrcode-wrap");
  18. if (f) {
  19. f.parentNode.removeChild(f);
  20. }
  21. f = document.querySelector(".vip-tag");
  22. if (f) {
  23. f.parentNode.removeChild(f);
  24. }
  25. f = Array.prototype.filter.call(document.getElementsByTagName("H2"), x => x.textContent == "PRIDE Selection")[0];
  26. if (f) {
  27. f.parentNode.parentNode.removeChild(f.parentNode);
  28. }
  29. Array.prototype.filter.call(document.querySelectorAll(".slide-item-wrap"),
  30. i => i[Object.getOwnPropertyNames(i)
  31. .filter(x => x.startsWith("__reactProps"))[0]].children.props.item.categoryTagList.indexOf("Chinese Mainland") == -1)
  32. .forEach(e => e.parentNode.removeChild(e))
  33. }, true);
  34. })();

QingJ © 2025

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