Bsearch(intumu.com)

bilibili搜索加强版,现网页版不支持复合搜索选框!

目前為 2023-05-11 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Bsearch(intumu.com)
// @namespace    http://tampermonkey.net/
// @version      0.0.5
// @description  bilibili搜索加强版,现网页版不支持复合搜索选框!
// @author       yeayee
// @match        https://search.bilibili.com/*
// @icon        https://static.hdslb.com/mobile/img/512.png
// @grant       GM_xmlhttpRequest
// @grant       GM_addStyle
// @grant       GM_openInTab
// @grant      GM_registerMenuCommand
// @grant      GM_setValue
// @grant      GM_getValue
// @run-at     document-end
// @require    https://cdn.staticfile.org/jquery/3.4.0/jquery.min.js
// @require    https://cdn.staticfile.org/jquery-cookie/1.4.1/jquery.cookie.min.js
// @require    https://unpkg.com/axios/dist/axios.min.js
// @connect    search.bilibili.com
// @license    MIT

// ==/UserScript==
 
(function () {
    'use strict';
    // grant       GM_getResourceText
    $("head").append($(
        '<link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/github-markdown-css/5.2.0/github-markdown.css" media="(prefers-color-scheme: dark)">'
    ));

    // 通过class定位button
    const buttons = document.getElementsByClassName('vui_button vui_button--blue vui_button--lg search-button');

    // 遍历每个button
    for (let i = 0; i < buttons.length; i++) {
    const button = buttons[i];

    // 创建新的button元素
    const newButton = document.createElement('button');
    newButton.innerHTML = '新的按钮';

    // 将新的button插入到button后面
    button.parentNode.insertBefore(newButton, button.nextSibling);
    };

})();