// ==UserScript== // @name coze gpt full? // @namespace https://bbs.tampermonkey.net.cn/ // @version 0.1.0 // @description try to take over the world! // @author tfsn20 // @match https://www.coze.com/space/*/bot/* // ==/UserScript== (function() { 'use strict'; function createButton(fontColor = '(235, 101, 0, 1)', backColor = '(228, 229, 229, 0.5)') { var button = document.createElement('button'); button.innerHTML = 'Full?'; button.style.cssText = `position: fixed; top: 5px; left: 50%; transform: translateX(-50%); padding: 5px 5px; background-color: rgba${backColor}; color: rgba${fontColor}; border: none; border-radius: 10px; cursor: pointer; z-index: 9999; font-family: "Times New Roman", Times, serif; font-size: 16px; `; document.body.appendChild(button); return button } let button = createButton(); let isZeroZeroOne = true; button.addEventListener('click', function () { if (isZeroZeroOne) { document.querySelector("div.sidesheet-container").style.cssText = "display: grid; grid-template-columns: 0fr 0fr 1fr;"; document.querySelector("#root > div > div > div > div").style.cssText = 'display: none;'; document.querySelector("div.sidesheet-container > div:nth-child(3) > div").style.cssText = 'display: none;'; } else { document.querySelector("div.sidesheet-container").style.cssText = "display: grid; grid-template-columns: 1fr 1fr 1fr;"; document.querySelector("#root > div > div > div > div").style.cssText = 'display: flex;'; document.querySelector("div.sidesheet-container > div:nth-child(3) > div").style.cssText = 'display: flex;'; } isZeroZeroOne = !isZeroZeroOne; }); // Your code here... })();