// ==UserScript== // @name 论坛快捷回帖 // @namespace http://bmqy.net/ // @version 0.2.0.3 // @description 使用自定义内容或本扩展预定义的回帖内容,快捷回复支持的论坛的发帖! // @author bmqy // @match */thread*.* // @match */forum.php?mod==viewthread // @match */forum.php?mod=viewthread // @match */forum/forum.php?mod=viewthread // @match */forum/thread*.* // @match */bbs/forum.php?mod=viewthread // @match */forum.php?mod=post // @grant GM_getValue // @grant GM_setValue // @grant GM_addValueChangeListener // @downloadURL none // ==/UserScript== (function() { 'use strict'; var QuickReply = { options: { bEnabled: true, sTarget: '#fastposteditor', sTargetMessage: '#fastpostmessage', sTargetFloat: '#floatlayout_reply', sTargetFloatMessage: '#postmessage', sTargetReplyfastBtn: '.replyfast', sQuickReplyWarp: 'quickReplyWarp', sQuickReplySelect: 'quickReplySelect', sQuickReplyCustom: 'quickReplyCustom', sCustomKey: 'replysCustom', aReplysDefault: [ '感谢楼主分享,支持一下!', '支持一下,希望楼主做的更好,加油!', '做的不错哦,楼主加油,期待更好的作品!', '标记一下,先看看好不好,谢谢楼主咯!' ] }, setItem: function(key, value){ GM_setValue(key, value); }, getItem: function(key){ var arr = []; if(GM_getValue(key) && GM_getValue(key).length > 0){ arr = GM_getValue(key); } else{ arr = this.options.aReplysDefault; } return arr; }, updateReplysSelect: function (obj, arrReplys){ obj.options.length = 0; for(var i=0;i