您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
论坛快捷回复
当前为
// ==UserScript== // @name 科学刀快捷回复 // @namespace NewFly // @version 1.1 // @description 论坛快捷回复 // @author NewFly // @match https://www.kxdao.net/thread*.html // @grant none // ==/UserScript== (function() { 'use strict'; window.autoreply = function (){ //显示回复窗口 document.getElementById("post_reply").click(); //showWindow('reply', 'forum.php?mod=post&action=reply&tid='+tid) //在富文本编辑框中输入内容 window.setTimeout(function(){writetext()},500); //提交回复 window.setTimeout(function(){clicksubmitbutton()}, 500); } window.writetext = function (){ document.getElementById("postmessage").value="好用的自动快捷回复"; } window.clicksubmitbutton = function (){ document.getElementById("postsubmit").click(); } document.getElementById("post_reply").insertAdjacentHTML("afterEnd",'<input type="button" value="快捷回复" style="width:80px;height:33px;" onclick="autoreply()"></input>'); // Your code here... })();