🏠 Home 

其乐高级搜索自动选中汉化板块

高级搜索地址:https://keylol.com/search.php?mod=forum&adv=yes


安装此脚本?
  1. // ==UserScript==
  2. // @name 其乐高级搜索自动选中汉化板块
  3. // @version 1.0
  4. // @description 高级搜索地址:https://keylol.com/search.php?mod=forum&adv=yes
  5. // @author shopkeeperV
  6. // @match https://keylol.com/search.php?mod=forum&adv=yes
  7. // @icon https://www.google.com/s2/favicons?sz=64&domain=keylol.com
  8. // @grant none
  9. // @namespace https://greasyfork.org/users/150069
  10. // ==/UserScript==
  11. (function () {
  12. 'use strict';
  13. let options = document.getElementById("srchfid").getElementsByTagName("option");
  14. for (let i = 0; i < options.length; i++) {
  15. if (options[i].value === "all") {
  16. options[i].selected = false;
  17. }
  18. let ids = [257, 280, 293, 307];
  19. for (let j = 0; j < ids.length; j++) {
  20. if (options[i].value === ids[j] + "") {
  21. options[i].selected = true;
  22. }
  23. }
  24. }
  25. })();