Greasy Fork is available in English.

哥特动漫王国自动回帖脚本

哥特动漫王国系列脚本

// ==UserScript==
// @name         哥特动漫王国自动回帖脚本
// @namespace    https://www.gtloli.gay/
// @version      2.0
// @description  哥特动漫王国系列脚本
// @author       LOLI娘本娘
// @match        *://www.gtloli.gay/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=greasyfork.org
// @grant        none
// @license GPLv3
// ==/UserScript==

(function() {
    'use strict';
    window.onload = function(){
       let box = document.querySelector('.plm');
       let replybtn = document.querySelector('.fastre');
      let div = document.createElement("div");
      div.id= "huifu";
      div.style.cssText = "width:100%;height:50px;background-color:#df6262;border-radius:8px;box-shadow: 1px 2px 3px 1px;text-align: center;margin-bottom:20px;";
      let span = document.createElement("span");
      span.id="huifuspan";
      span.style.cssText="color: #fff;font-size: 20px;line-height: 50px;font-weight:bold;letter-spacing:4px;";
      span.textContent = "点击这里使用懒鬼一键自动回复🎅";
       let repList = ['爱你喲{:2_212:}','楼主是大坏蛋~嘤嘤嘤!!','没有杯子。咖啡是寂寞的。没有你,我是孤独的','真想把楼主逮住,狠狠的打胶','我想要当一个大家最喜欢的RBQ','假如可以的话,我愿意花去生命中的每一分每一秒陪着你','牢笼!!永远的神','LOLI娘是大家的{:2_207:}'
                     ,'岁月老去,我愿陪你,静静地闭上眼睛','我会永远在你身后,因为我是你的RBQ','再苦再累,我也从不放弃,因为你是我的RBQ','你是我的最爱,愿意陪你一辈子搞笑深爱','相信爱情,更相信你,我想让你陪我,过下辈子'];
       const ramnode = function(){
           let num = Math.floor(Math.random()*repList.length);
           return repList[num];
       }
      div.addEventListener('click',function(){
        replybtn.click();
         let status = true;
         let form = document.querySelector("#postmessage");
         let send = document.querySelector("#postsubmit");
         if(form===undefined || form===null){
           let timer =  setInterval(()=>{   
                 form = document.querySelector("#postmessage");
                 send = document.querySelector("#postsubmit");
                 if(form!==null && send!==null ){
                 clearInterval(timer);
                 form.value= ramnode();
                 send.click();
                 }

            },100)
         }

      });
      div.appendChild(span);
      box.appendChild(div);
    }

})();