您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Allows you to quote multiple posts at a time.
// ==UserScript== // @name Hack Forums Multiquote // @namespace Text // @version 0.1 // @description Allows you to quote multiple posts at a time. // @author DisturbedNut // @include *hackforums.net/showthread.php?tid=* // @grant none // @require https://code.jquery.com/jquery-3.2.1.min.js // ==/UserScript== $(document).ready(function() { $(".post_management_buttons").each(function() { var button = $("<a>", { id: "multiquote_" + $(this).closest("table").attr("id").split("_")[1], "class": "bitButton" }); button.text("Multiquote"); button.css("cursor", "pointer"); button.click(function() { var current = $(this); current.text("Loading quote..."); $.get('/newreply.php?tid=' + $('[name="tid"]').val() + '&replyto=' + $(this).attr("id").split("_")[1], function(data) { $("#message").val($("#message").val() + $("#message", data).text()); current.text("Post quoted"); current.css("color", "#7fff63"); current.off("click"); }); }); $(this).append(button); }); });