Guest User

Untitled

a guest
Oct 21st, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name       Fix T.net 7
  3. // @namespace  http://use.i.E.your.homepage/
  4. // @version    0.1
  5. // @description  enter something useful
  6. // @match      http://*/*
  7. // @copyright  2012+, You
  8. // @require    http://code.jquery.com/jquery-1.8.2.min.js
  9. // ==/UserScript==
  10.  
  11. var i = 0;
  12. var link = "";
  13.  
  14. $("#highlights table.highlights tbody tr").each(function() {
  15.     link = $(this).find("a:first").attr("href");
  16.     $(this).after("<tr><td class='custom_intro' colspan='3' id='custom_intro_"+ i +"'></td></tr>");
  17.     $("#custom_intro_" + i).load(link + " div.article p.lead");
  18.     i += 1;
  19. });
  20.  
  21. $("div.reactieHeader").append("<a href='javascript:void(0);' class='minmaxreacties'><span class='mm_ind'>-</span><span class='mm_ind' style='display:none;'>+</span></a>").bind("click", function() {
  22.     $(this).parent().parent().parent().find(".reactie").toggle();
  23.     $(this).parent().find(".reactieContent, .scoreButton, .reactieFooter").toggle();
  24.     $(this).find('.mm_ind').toggle();
  25. });
Advertisement
Add Comment
Please, Sign In to add comment