查看: 472|回复: 12

真牛一键回复思路求解(半成品搬过来的)

[复制链接]
发表于 2023-5-5 09:03 | 显示全部楼层 |阅读模式
w4646937 2023-5-5 09:03 472 12 显示全部楼层
游客,如果您要查看本帖隐藏内容请回复







// ==UserScript==
// @name         真牛辅助回复NB版66666
// @namespace    https://www.zn550.vip/forum.php
// @version      0.1
// @description  一键回复我最牛
// @author       牛
// @match         https://www.zn550.vip/thread-*-*-*-*.html
// @match         https://www.zn550.vip/thread.php?mod=guide=*
// ==/UserScript==

(function() {
    'use strict';
    var button = document.createElement("button");
    button.textContent = "回复";
    button.style.width = "77px";
    button.style.height = "33px";
    button.style.align = "center";
    button.style.color = "white";
    button.style.background = "#7568be";
    button.style.border = "1px solid #7568be";
    button.addEventListener("click", clickBotton)
    function clickBotton(){
        setTimeout(function(){
        var comment=["针不戳呀,写的针不戳!","sixsixsixsixi","666666666666666666","NBNBNBNBNBNB","人才,写的真不戳!!!!!!!!"];
        var abc = -1;
        var nb = 5;
        var qwer = Math.floor(Math.random()*(abc-nb+1))+nb ;
       document.getElementById("fastpostmessage").click();
        document.getElementById("fastpostmessage").value = comment[qwer];
       document.getElementsByClassName("pn pnc vm")[0].click();
},100);
setTimeout(function(){document.getElementsByClassName("scrolltopa")[0].click();},2300);

    }
    var like_comment = document.getElementsByClassName('pgs mbm cl ')[0];
    like_comment.appendChild(button);
    var qr_code = document.getElementById("post_reply");
    if (qr_code){
       qr_code.remove();}
})();

 楼主| 发表于 2023-5-5 10:19 | 显示全部楼层
w4646937 2023-5-5 10:19 显示全部楼层
这个可以用吗?
回复

使用道具 举报

发表于 2023-5-5 11:25 | 显示全部楼层
签到顶贴6666
回复

使用道具 举报

发表于 2023-5-5 12:18 | 显示全部楼层
ls科技 2023-5-5 12:18 显示全部楼层
感谢分享,论坛因你而精彩!
回复

使用道具 举报

发表于 2023-5-5 13:12 | 显示全部楼层
这个可以用吗?
回复

使用道具 举报

发表于 2023-5-5 19:09 | 显示全部楼层
签到顶贴6666
回复

使用道具 举报

发表于 2023-5-5 19:50 | 显示全部楼层
签到顶贴6666
回复

使用道具 举报

发表于 2023-5-6 03:33 | 显示全部楼层
da5sda86 2023-5-6 03:33 显示全部楼层
谢谢大佬,以拿了谢谢大佬,以拿了
回复

使用道具 举报

发表于 2023-5-6 09:40 | 显示全部楼层
lieying 2023-5-6 09:40 显示全部楼层
感谢楼主分享!
回复

使用道具 举报

发表于 2023-5-6 10:45 | 显示全部楼层
yyj24359 2023-5-6 10:45 显示全部楼层
锄禾日当午,回帖真辛苦
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则 返回列表 发新帖

快速回复 返回顶部 返回列表