Advertisement
Guest User

Untitled

a guest
Dec 9th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name           MMA Tycoon Org Fighter List Plus IDs
  3. // @namespace      http://www.tycoontools.com/greasemonkey-scripts
  4. // @description    This script adds fighter IDs next to their names.
  5. // @include        http://www.mmatycoon.com/orgfighterlistfull.php*
  6. // @include        http://mmatycoon.com/orgfighterlistfull.php*
  7. // @version        1.0
  8. // @copyright      2018
  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 table table table > tbody > tr > td:first-child").each(function() {
  15.     if (jQuery(this).find('a[href*="fighterprofilepublic.php?FID"]').length) {
  16.       var fighterID = jQuery(this).find('a[href*="fighterprofilepublic.php?FID"]').attr('href').split("FID=").pop();
  17.       jQuery(this).find('a[href*="fighterprofilepublic.php?FID"]').append(' ('+fighterID+')');
  18.     }
  19.   });
  20.  
  21. }
  22.  
  23. Main();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement