Greasy Fork

Greasy Fork is available in English.

富贵论坛快捷回复工具(帝王哥)

帝王哥富贵论坛快捷回复工具暂时只支持富贵论坛使用

当前为 2023-05-23 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         富贵论坛快捷回复工具(帝王哥)
// @namespace    diwangge
// @version      1.3
// @description  帝王哥富贵论坛快捷回复工具暂时只支持富贵论坛使用
// @author       diwangge
// @match        https://www.fglt.net/*
// @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("scrolltop").insertAdjacentHTML("afterEnd",'<div id="scrolltop" style="width:150px;height:150px;left: 5%; right: auto; visibility: visible;"><input type="button" value="快捷回复" style="color:#F00;font-size:30px;width:150px;height:150px;" onclick="autoreply()"></div>');




    // Your code here...
})();