Yansky

Untitled

Jun 7th, 2011
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.       var url  = document.location.toString();
  2.       var html = '<dt>Tools</dt>';
  3.       if(url.match('forum-replies.cfm')){
  4.               var thread_id = url.split('t=')[1];
  5.                   thread_id = thread_id.split('&')[0];
  6.               var user_id = $('.userinfo dd:first').text().split('#')[1];
  7.               GM_xmlhttpRequest({
  8.                     method: req.method || 'GET',
  9.                     url: 'http://forums.whirlpool.net.au/user/'+ user_id +'',
  10.                     headers: { 'User-Agent': navigator.userAgent, 'Accept': req.accept || 'text/xml' },
  11.                     onload: function(response) {
  12.                         var posts = $('td:contains("Post count")').next('td').text();
  13.                         $('.userinfo').after('<dl>' + html + '</dl>');
  14.                         var user_name = $('.userinfo dt').text();
  15.                         html += '<dd>'+ posts +'</dd> ';
  16.                         $('.userinfo').after('<dl>' + html + '</dl>');
  17.                     },
  18.                 })  
  19.             }
  20.       }
Advertisement
Add Comment
Please, Sign In to add comment