coze.cn

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==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)

})()