|
|
// ==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();}
})();
|
|