Hack Forums Multiquote

Allows you to quote multiple posts at a time.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

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