Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name MMA Tycoon Org Fighter List Plus Helper
- // @namespace http://www.tycoontools.com/greasemonkey-scripts
- // @description This script adds a different background color to rows where fighters are not available to fight.
- // @include http://www.mmatycoon.com/orgfighterlistfull.php*
- // @include http://mmatycoon.com/orgfighterlistfull.php*
- // @version 1.0
- // @copyright 2014
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
- // ==/UserScript==
- function Main() {
- jQuery("table table tr:nth-child(3) img[src*='images/offlinelist.gif']").parent().css('background', '#ffffff').parent().css('background', '#ffffff');
- jQuery("table table tr:nth-child(3) img[src*='images/onlinelist.gif']").parent().css('background', '#ffffff').parent().css('background', '#ffffff');
- jQuery("table table tr:nth-child(3) a").css('background', 'transparent');
- // Inactive 15+ days
- jQuery("table table tr:nth-child(3) img[src*='images/clockY.gif']").each(function() {
- jQuery(this).parent().parent().css('background', '#fffd55').parent().css('background', '#fffd55');
- });
- // Inactive 30+ days
- jQuery("table table tr:nth-child(3) img[src*='images/clockR.gif']").each(function() {
- jQuery(this).parent().parent().css('background', '#ffd4d4').parent().css('background', '#ffd4d4');
- });
- // Accepted
- jQuery("table table tr:nth-child(3) img[src*='images/tick.gif']").each(function() {
- jQuery(this).parent().css('background', '#c9ff83').parent().css('background', '#c9ff83');
- });
- // Under offer
- jQuery("table table tr:nth-child(3) img[src*='images/tickorange.gif']").each(function() {
- jQuery(this).parent().css('background', '#ffefd4').parent().css('background', '#ffefd4');
- });
- }
- Main();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement