// ==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 // @downloadURL https://update.greasyfork.icu/scripts/9503/Hack%20Forums%20-%20Request%20Warning%20Tool.user.js // @updateURL https://update.greasyfork.icu/scripts/9503/Hack%20Forums%20-%20Request%20Warning%20Tool.meta.js // ==/UserScript== text = ''; $(".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]"); } });