Only the Big Three

Removes Tears of Themis, Honkai Impact 3rd, and Honkai: Nexus Anima from HoYoLAB search and home menu.

  1. // ==UserScript==
  2. // @name Only the Big Three
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.4
  5. // @description Removes Tears of Themis, Honkai Impact 3rd, and Honkai: Nexus Anima from HoYoLAB search and home menu.
  6. // @match https://www.hoyolab.com/*
  7. // @grant none
  8. // @icon https://webstatic.hoyoverse.com/upload/op-public/2021/04/12/bbeb16029152ef690abb1d41dd1a8f78_7756606814264622244.png
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. const blockedGames = [
  15. "Tears of Themis", "TearsofThemis",
  16. "Honkai Impact 3rd", "HonkaiImpact3rd",
  17. "Honkai: Nexus Anima", "HonkaiNexusAnima"
  18. ];
  19.  
  20. function hideBlockedGames() {
  21.  
  22. document.querySelectorAll("li.game-item").forEach(item => {
  23. if (blockedGames.some(game => item.textContent.includes(game))) {
  24. item.style.display = "none";
  25. }
  26. });
  27.  
  28. document.querySelectorAll("li.mhy-selectmenu__item").forEach(item => {
  29. const label = item.querySelector(".mhy-selectmenu__label")?.textContent.trim();
  30. if (blockedGames.includes(label)) {
  31. item.style.display = "none";
  32. }
  33. });
  34. }
  35.  
  36.  
  37. let tries = 0;
  38. const interval = setInterval(() => {
  39. hideBlockedGames();
  40. tries++;
  41. if (tries > 20) clearInterval(interval);
  42. }, 200);
  43.  
  44. const observer = new MutationObserver(hideBlockedGames);
  45. observer.observe(document.body, { childList: true, subtree: true });
  46. })();

QingJ © 2025

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