您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
幻彩画笔newbing辅助脚本,按tab键重置输入框,按ctrl键重置对话。
// ==UserScript== // @name 幻彩画笔newbing辅助脚本 // @namespace plusv // @version 1.1 // @description 幻彩画笔newbing辅助脚本,按tab键重置输入框,按ctrl键重置对话。 // @match https://visionarybrush.com/aichat/newbing // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Get the elements we need var textarea = document.getElementById("prompt"); // The textarea for typing questions var reset = document.getElementById("empty"); // The button for resetting the conversation // Add a keydown event listener to the document document.addEventListener("keydown", function(event) { // If the tab key is pressed if (event.key === "Tab") { // Prevent the default behavior of tab key event.preventDefault(); // Focus on the textarea textarea.focus(); // Select all the text in the textarea textarea.select(); // Delete the selected text document.execCommand("delete"); } // If the ctrl key is pressed if (event.key === "Control") { // Click on the reset button reset.click(); } }); })();