您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Sets brief answer and direct tone as default options for submit | 27.06.2023, 20:48:00
当前为
// ==UserScript== // @name Brief answer and direct tone as default - zzzcode.ai // @namespace Violentmonkey Scripts // @include https://zzzcode.ai // @match https://zzzcode.ai/answer-question // @grant none // @version 1.1 // @author K33p_Qu13t // @license MIT // @description Sets brief answer and direct tone as default options for submit | 27.06.2023, 20:48:00 // ==/UserScript== // Find "I want" selector const iWantSelector = document.querySelector("select.form-control#uiOption1"); // Delete current selected let selectedOption = iWantSelector.querySelector("option[selected]"); selectedOption.removeAttribute("selected"); // Select brief answer const briefAnswerNode = iWantSelector.querySelector( 'option[value="2 - A brief answer"]' ); briefAnswerNode.setAttribute("selected", "selected"); // Find "Tone" selector const toneSelector = document.querySelector("select.form-control#uiOption2"); // Delete current selected selectedOption = toneSelector.querySelector("option[selected]"); selectedOption.removeAttribute("selected"); // Select direct tone const directNode = toneSelector.querySelector('option[value="Direct"]'); directNode.setAttribute("selected", "selected");