Advertisement
Guest User

Listerman script

a guest
Aug 26th, 2015
598
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. // ==UserScript==
  2. // @name MMA Tycoon Org Fighter List Plus Helper
  3. // @namespace http://www.tycoontools.com/greasemonkey-scripts
  4. // @description This script adds a different background color to rows where fighters are not available to fight.
  5. // @include http://www.mmatycoon.com/orgfighterlistfull.php*
  6. // @include http://mmatycoon.com/orgfighterlistfull.php*
  7. // @version 1.0
  8. // @copyright 2014
  9. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
  10. // ==/UserScript==
  11.  
  12. function Main() {
  13.  
  14. jQuery("table table tr:nth-child(3) img[src*='images/offlinelist.gif']").parent().css('background', '#ffffff').parent().css('background', '#ffffff');
  15. jQuery("table table tr:nth-child(3) img[src*='images/onlinelist.gif']").parent().css('background', '#ffffff').parent().css('background', '#ffffff');
  16. jQuery("table table tr:nth-child(3) a").css('background', 'transparent');
  17.  
  18. // Inactive 15+ days
  19. jQuery("table table tr:nth-child(3) img[src*='images/clockY.gif']").each(function() {
  20. jQuery(this).parent().parent().css('background', '#fffd55').parent().css('background', '#fffd55');
  21. });
  22.  
  23. // Inactive 30+ days
  24. jQuery("table table tr:nth-child(3) img[src*='images/clockR.gif']").each(function() {
  25. jQuery(this).parent().parent().css('background', '#ffd4d4').parent().css('background', '#ffd4d4');
  26. });
  27.  
  28. // Accepted
  29. jQuery("table table tr:nth-child(3) img[src*='images/tick.gif']").each(function() {
  30. jQuery(this).parent().css('background', '#c9ff83').parent().css('background', '#c9ff83');
  31. });
  32.  
  33. // Under offer
  34. jQuery("table table tr:nth-child(3) img[src*='images/tickorange.gif']").each(function() {
  35. jQuery(this).parent().css('background', '#ffefd4').parent().css('background', '#ffefd4');
  36. });
  37. }
  38.  
  39. Main();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement