newbing输入框样式固定

将newbing输入框样式固定下来,不变来变去

当前为 2023-04-24 提交的版本,查看 最新版本

// ==UserScript==
// @name         newbing输入框样式固定
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  将newbing输入框样式固定下来,不变来变去
// @author       You
// @match        https://www.bing.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=bing.com
// @grant        GM_addStyle
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    let myVar = setInterval(() => {
    const container = document.querySelector('.cib-serp-main');
    if(container){
        let shadowRoot = container.shadowRoot;
        let myElement1 = shadowRoot.getElementById('cib-action-bar-main');
        if(myElement1){
             console.log(myElement1)
            let shadowRoot2 = myElement1.shadowRoot;
            let myElement2 = shadowRoot2.querySelector('.main-container');
            myElement2.style.minHeight = '90px';
            let buttonCompose = shadowRoot2.querySelector('.button-compose');
            buttonCompose.style.width= '45px'
            clearInterval(myVar);
        }
    }
    }, 1000);
})();

QingJ © 2025

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