coze.cn

coze.cn 输入区域方法调整, 调整样式...

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         coze.cn
// @namespace    http://tampermonkey.net/
// @version      2025.01.16
// @description  coze.cn 输入区域方法调整, 调整样式...
// @author       You
// @match        https://www.coze.cn/space/*/bot/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=coze.cn
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
  'use strict'

  // 输入区域方法
  const containerInterval = setInterval(() => {
    const containerSelectors = 'div.wrapper-single--A0MD8isUfN0fw9n2m7o1'
    const element = document.querySelector(containerSelectors)
    if (element) {
      element.style.gridTemplateColumns = '1fr 2fr'
      clearInterval(containerInterval)
    }
  }, 100)

  // 输入框边框粗细调整
  const inputInterval = setInterval(() => {
    const inputSelectors = 'div.textarea-with-top-rows--yBP1oD_y3UMsrTDkIhsk'
    const element = document.querySelector(inputSelectors)
    if (element) {
      element.style.borderRadius = '100px'
      element.style.border = '2px solid #E9EBF2'
      clearInterval(inputInterval)
    }
  }, 100)

})()