您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
将newbing输入框样式固定下来,不变来变去
// ==UserScript== // @name newbing输入框样式固定 // @namespace http://tampermonkey.net/ // @version 0.4 // @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){ let shadowRoot2 = myElement1.shadowRoot; let myElement2 = shadowRoot2.querySelector('.main-container'); myElement2.style.minHeight = '90px'; myElement2.style.borderRadius = '12px'; let buttonCompose = shadowRoot2.querySelector('.button-compose'); buttonCompose.style.width= '45px' let buttonBar = shadowRoot2.querySelector('.bottom-bar'); buttonBar.style.opacity=1; clearInterval(myVar); } } }, 1000); })();