Greasy Fork is available in English.

VCB-Studio搜索 自动跳转搜索页 2020年6月18日

VCB-Studio搜索 自动跳转搜索页

// ==UserScript==
// @name         VCB-Studio搜索 自动跳转搜索页 2020年6月18日
// @namespace    waecy
// @version      0.0.2
// @description  VCB-Studio搜索 自动跳转搜索页
// @namespace    https://greasyfork.org/zh-CN/scripts/405283
// @author       waecy
// @require      https://cdn.staticfile.org/jquery/2.1.4/jquery.min.js
// @include      *://bbs.vcb-s.com/search.php?mod=forum&adv=yes&srchtxt=*
// @include      *://404.website/search.php?mod=forum&adv=yes&srchtxt=*
// @include      *://bbs.acgrip.com/search.php?mod=forum&adv=yes&srchtxt=*
// @grant        GM_xmlhttpRequest
// @grant        GM_setValue
// @run-at       document-start
// @license      MIT License
// ==/UserScript==
$(document).ready(function() {
    // 判断元素是否存在
    if ($('#scform_srchtxt')) {
        // 判断是否搜索内容不为空
        if ($('#scform_srchtxt').val()) {
            document.getElementById("scform_submit").click();
        }
    }
})