andrizz / TM HIDE SCOUTS

// ==UserScript==
// @name            TM HIDE SCOUTS
// @version         1.1
// @description     On click hide unavailable scouts (for those who have a lot of scouts)
// @author          Andrizz aka Banana aka Jimmy il Fenomeno
// @downloadURL     https://openuserjs.org/install/andrizz/TM_HIDE_SCOUTS.user.js
// @include			https://trophymanager.com/players/*
// @include			https://fb.trophymanager.com/players/*
// @exclude			https://trophymanager.com/players/
// @exclude			https://fb.trophymanager.com/players/
// @exclude			https://trophymanager.com/players/compare/*
// @exclude			https://fb.trophymanager.com/players/compare/*
// @license MIT
// ==/UserScript==
window.onclick = Nascondi;
function  Nascondi() {
          var indisponibili = document.getElementById("player_scout_new").getElementsByClassName("button disabled");
          for (var y = 0; y<indisponibili.length; y++) {
          var pulisci = indisponibili[y].parentNode.parentNode;
          pulisci.style.display="none";
          }
      }