Hack Forums - Request Warning Tool

Request Warnings Easier To Clipboard

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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 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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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.

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

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

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

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

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

// ==UserScript==
// @name      Hack Forums - Request Warning Tool
// @namespace      Tony (the tiger) Stark
// @description     Request Warnings Easier To Clipboard
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js
// @grant      GM_setClipboard
// @include      *hackforums.net/showthread.php?tid=*
// @version      1.0
// ==/UserScript==

text = '<select class="request" style="width: 120px"> \
<option>Select request</option> \
<option>Adult Content</option> \
<option>Forum Advertising</option> \
<option>Copyright Infringement</option> \
<option>Cross Posting</option> \
<option>Disallowed Blackhat Activity</option> \
<option>Donation Begging</option> \
<option>Flame, Threat, Harassment</option> \
<option>Infected Download or Link</option> \
<option>Leeched Post</option> \
<option>Low Quality</option> \
<option>Market Cross Posting</option> \
<option>Marketplace Violation</option> \
<option>Not In Marketplace</option> \
<option>Unrelated or Off Topic Post</option> \
<option>Personal Data</option> \
<option>Post to PM</option> \
<option>Profile Violation</option> \
<option>Reputation Abuse</option> \
<option>Spam Posting</option> \
<option>Vouch Begging</option> \
<option>Wrong Forum</option> \
<option>Other</option> \
</select>';

$(".post_management_buttons").prepend(text);

$(".request").on("change", function() {
    if($(this).val() != "Select one") {
      url = "http://hackforums.net/" + $(this).parentsUntil("table[id*='post_']").parent().find("a[href*='showthread.php?tid=']").attr("href");
      optionSelected = $(this).find('option:selected').text();
      GM_setClipboard("[list][url=" + url + "]" + optionSelected + "[/url][/list]");
    }
});