Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name MMA Tycoon Org Fighter List Plus IDs
- // @namespace http://www.tycoontools.com/greasemonkey-scripts
- // @description This script adds fighter IDs next to their names.
- // @include http://www.mmatycoon.com/orgfighterlistfull.php*
- // @include http://mmatycoon.com/orgfighterlistfull.php*
- // @version 1.0
- // @copyright 2018
- // @require https://code.jquery.com/jquery-3.3.1.min.js
- // ==/UserScript==
- $(document).ready(function() {
- $("table table table table table > tbody > tr > td:first-child").each(function() {
- if ($(this).find('a[href*="fighterprofilepublic.php?FID"]').length) {
- var fighterID = $(this).find('a[href*="fighterprofilepublic.php?FID"]').attr('href').split("FID=").pop();
- $(this).find('a[href*="fighterprofilepublic.php?FID"]').append(' ('+fighterID+')');
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement