// ==UserScript==
// @name        FUT Show Contracts and Fitness
// @version     0.1.1
// @description Show contract and fitness value instantly in search list
// @license     MIT
// @author      Tim Klingeleers
// @match       https://www.easports.com/fifa/ultimate-team/web-app/*
// @match       https://www.easports.com/*/fifa/ultimate-team/web-app/*
// @namespace   https://github.com/Mardaneus86
// @updateURL   https://raw.githubusercontent.com/Mardaneus86/futwebapp-tampermonkey/master/show-contract-fitness.user.js
// @downloadURL https://raw.githubusercontent.com/Mardaneus86/futwebapp-tampermonkey/master/show-contract-fitness.user.js
// @supportURL  https://github.com/Mardaneus86/futwebapp-tampermonkey/issues
// ==/UserScript==
// ==OpenUserJS==
// @author Mardaneus86
// ==/OpenUserJS==
(function () {
  'use strict';

  $('head').append('<style id="addedCSS" type="text/css">.item.player.small .infoTab { ' +
    '  top: 5%; ' +
    '  right: 0; ' +
    '  width: 100%; ' +
    '  height: 22%; ' +
    '  line-height: 165%; ' +
    '} ' +
    '</style>');

  $(document).bind('DOMNodeInserted', function (event) {
    if ($(event.target).hasClass("listFUTItem")) {
      var items = gNavManager.getCurrentScreenController()._controller._listController._viewmodel._collection;
      var rows = $('.listFUTItem');
      rows.each(function (index, row) {
        $(row).find('.infoTab').html(
          '<div class="fitness" style="float: right;margin-right: 20px;color: black;">' +
          items[index].fitness +
          '</div>' +
          '<div class="contracts" style="margin-left: 30px;float: left;color: black;">' +
          items[index].contract +
          '</div>'
        );
      });
    }
  });
})();

@@ -78,17 +78,17 @@
     0.1.
-1
+2
 %0A// @des
@@ -845,17 +845,20 @@
 .append(
-'
+%60%0A  
 %3Cstyle i
@@ -886,16 +886,21 @@
 xt/css%22%3E
+%0A    
 .item.pl
@@ -913,29 +913,211 @@
 mall
- .infoTab %7B ' +%0A    '
+.TOTW .infoTab, .item.player.small.OTW .infoTab, .item.player.small.TOTS .infoTab, .item.player.small.TOTY .infoTab %7B%0A      color: white;%0A    %7D%0A%0A    .item.player.small .infoTab %7B%0A      color: black;%0A    
   to
@@ -1122,26 +1122,21 @@
 top: 5%25;
- ' +
 %0A    
-'
   right:
@@ -1138,26 +1138,21 @@
 ight: 0;
- ' +
 %0A    
-'
   width:
@@ -1157,26 +1157,21 @@
 h: 100%25;
- ' +
 %0A    
-'
   height
@@ -1176,26 +1176,21 @@
 ht: 22%25;
- ' +
 %0A    
-'
   line-h
@@ -1205,37 +1205,25 @@
 65%25;
- ' +
 %0A    
-'%7D ' +%0A    '
+%7D%0A  
 %3C/style%3E
 ');%0A
@@ -1218,17 +1218,17 @@
 %3C/style%3E
-'
+%60
 );%0A%0A  $(
@@ -1626,30 +1626,16 @@
 ht: 20px
-;color: black;
 %22%3E' +%0A  
@@ -1760,22 +1760,8 @@
 left
-;color: black;
 %22%3E' 

change text color for black cards