您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
让newbing的界面更人性化
// ==UserScript== // @name new Bing 样式美化 // @namespace https://www.bing.com/ // @version 0.3 // @description 让newbing的界面更人性化 // @author You // @match *://www.bing.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net // @grant none // @license GPLv3 // ==/UserScript== (function () { 'use strict'; setInterval(() => { if (document.getElementsByTagName("cib-serp").length > 0) { const pops = document.getElementsByTagName("cib-serp")[0].shadowRoot.getRootNode().getElementById("cib-conversation-main").shadowRoot.getRootNode().getElementById("cib-chat-main").children // console.log("pops", pops) for (let pop of pops) { if (pop.tagName === "CIB-CHAT-TURN") { const children = pop.shadowRoot.getRootNode().children for (let child of children) { if (child.tagName === "CIB-MESSAGE-GROUP") { if (child.getAttribute("source") === "user") { const textBlock = child.shadowRoot.getRootNode().children[0].shadowRoot.getRootNode().children[0].children[0] textBlock.style.whiteSpace = "break-spaces" } else { const blocks = child.shadowRoot.getRootNode().children for (let block of blocks) { if (block.getAttribute("type") === "text") { for (let messageBolck of block.shadowRoot.getRootNode().children) { if (messageBolck.tagName === "CIB-SHARED") { const textBlock = messageBolck.children[0] textBlock.style.whiteSpace = "break-spaces" const sups = textBlock.getElementsByTagName("sup") for (let sup of sups) { sup.style.userSelect = "none" } } } } } } } } } } } }, 1000); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址