您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Mass reply on soyjak.party
// ==UserScript== // @name Soyjak.party Mass Reply // @namespace Soyjak.party // @match https://soyjak.party/*/res/* // @match http://soyjak.party/*/res/* // @match https://www.soyjak.party/*/res/* // @match http://www.soyjak.party/*/res/* // @grant none // @license MIT // @version 1.0.3 // @author thoughever // @description Mass reply on soyjak.party // ==/UserScript== (function () { function insert_after(new_node, ref_node) { ref_node.parentNode.insertBefore(new_node, ref_node.nextSibling); } function mass_reply() { let form_textarea = document.getElementById('body'); let post_no_nodes = document.getElementsByClassName("post_no"); for(const node of post_no_nodes) { let post_no_text = node.textContent; if(!post_no_text.includes("No")) { form_textarea.value += `>>${post_no_text}\n`; } } form_textarea.focus(); } function add_button() { let ref_node = document.querySelectorAll(".op .intro .post_no")[1]; let button = document.createElement("input"); button.type = "button"; button.value = "Mass Reply"; button.style.marginLeft = "5px"; button.addEventListener("click", function() { mass_reply(); }, false); insert_after(button, ref_node); } add_button(); })();