高级搜索地址:https://keylol.com/search.php?mod=forum&adv=yes
- // ==UserScript==
- // @name 其乐高级搜索自动选中汉化板块
- // @version 1.0
- // @description 高级搜索地址:https://keylol.com/search.php?mod=forum&adv=yes
- // @author shopkeeperV
- // @match https://keylol.com/search.php?mod=forum&adv=yes
- // @icon https://www.google.com/s2/favicons?sz=64&domain=keylol.com
- // @grant none
- // @namespace https://greasyfork.org/users/150069
- // ==/UserScript==
- (function () {
- 'use strict';
- let options = document.getElementById("srchfid").getElementsByTagName("option");
- for (let i = 0; i < options.length; i++) {
- if (options[i].value === "all") {
- options[i].selected = false;
- }
- let ids = [257, 280, 293, 307];
- for (let j = 0; j < ids.length; j++) {
- if (options[i].value === ids[j] + "") {
- options[i].selected = true;
- }
- }
- }
- })();