No VRoid

No VRoid pls

  1. // ==UserScript==
  2. // @name No VRoid
  3. // @namespace https://github.com/GizmoOAO/no-vroid
  4. // @match https://booth.pm/*/search/*
  5. // @match https://booth.pm/*/browse/*
  6. // @grant none
  7. // @version 1.1
  8. // @author GizmoOAO
  9. // @license MIT
  10. // @description No VRoid pls
  11. // ==/UserScript==
  12. (function () {
  13. 'use strict'
  14.  
  15. let searchKeys = [
  16. 'vrc',
  17. 'vrchat'
  18. ]
  19.  
  20. function noVRoid() {
  21. document.querySelectorAll('.item-card').forEach(node => {
  22. let titleNode = node.querySelector('.item-card__title')
  23. let title = titleNode && titleNode.textContent ? titleNode.textContent.toLowerCase() : ''
  24. if (title.search('vroid') !== -1) {
  25. console.log("[No VRoid]", titleNode.textContent)
  26. node.style.display = 'none'
  27. }
  28. })
  29. }
  30.  
  31. function getSearchValue() {
  32. let query = document.getElementById('query')
  33. return query ? query.value.toLowerCase() : ''
  34. }
  35.  
  36. let searchValue = getSearchValue()
  37. if (searchKeys.some(key => {
  38. return key === searchValue
  39. })) noVRoid()
  40. })()

QingJ © 2025

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