Advertisement
Guest User

GameFAQs Timestamps & Topic List

a guest
May 27th, 2015
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        Timestamps & Topic List
  3. // @namespace   http://www.gamefaqs.com
  4. // @match        *://www.gamefaqs.com/*
  5. // @version     1
  6. // @grant       none
  7. // ==/UserScript==
  8.  
  9.  
  10. $(function() {
  11.  
  12.   var boardListLink = $('ol.crumbs li:nth-child(2)').find("a").attr("href");
  13.  
  14.   if (boardListLink)
  15.     {
  16.      $('li.unav').after("<li><a href=\""+boardListLink+"\">Topic List</a></li>" );    
  17.     }
  18.  
  19.  
  20.   $('.post_time').each(function() {
  21.     var time = $(this).attr( "title" )
  22.     var ago = $(this).html()
  23.     $(this).html(time+" ("+ago+")")
  24.     $(this).attr( "title" , ago)
  25.   });
  26. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement