Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name HackForums Search Your Threads
- // @namespace Xerotic
- // @description Adds the Search Your Threads (SYT) button to forum display pages.
- // @include https://hackforums.net/forumdisplay.php*
- // @version 1.0.0
- // @grant none
- // ==/UserScript==
- (function() {
- $('td.thead').find('div.float_right').find('strong').append(` | <form method="post" action="search.php" style="display:inline">
- <input type="hidden" name="action" value="do_search">
- <input type="hidden" name="matchusername" value="1">
- <input type="hidden" name="forums" value="${parseInt($('div.breadcrumb').find('a').last().attr('href').split("fid=")[1])}">
- <input type="hidden" name="threadprefix" value="any">
- <input type="hidden" name="showresults" value="threads">
- <input type="hidden" name="author" value="${$('span.welcome').find('a').text()}">
- <button type="submit" class="" name="submit" title="Search Your Threads" style=" background: initial; border: initial; padding: initial; color: white; "><i class="fas fa-user-edit fa-lg"></i></button>
- </form>`);
- })();
Add Comment
Please, Sign In to add comment