View last post on your posts

View last post on your posts page

  1. // ==UserScript==
  2. // @name View last post on your posts
  3. // @namespace VLPOYP
  4. // @description View last post on your posts page
  5. // @include *hackforums.net/search.php*
  6. // @require http://code.jquery.com/jquery-2.2.2.min.js
  7. // @version 0.1.0
  8. // @grant GM_getValue
  9. // ==/UserScript==
  10.  
  11. if ($("td.tcat:nth-child(2) > span:nth-child(1) > strong:nth-child(1) > a:nth-child(1)").html() === "Author") {
  12. $(".tborder > tbody:nth-child(1) > tr:gt(1)").each(function() {
  13. var href = $(this).find("a").attr("href");
  14. $(this).find(".smalltext:first").prepend("<a href='"+href+"&amp;action=newpost' title='Go to first unread post' class='quick_jump'>►</a>");
  15. });
  16. }