andrizz / TM Country teams INT matches

// ==UserScript==
// @name         TM Country teams INT matches
// @namespace    http://tampermonkey.net/
// @version      0.4
// @description  highlight the international matches of the teams in your country
// @author       Andrizz aka Jimmy il Fenomeno (team ID = 3257254)
// @include      https://trophymanager.com/international-cup/*
// @downloadURL  https://openuserjs.org/install/andrizz/TM_Country_teams_INT_matches.user.js
// @updateURL    https://openuserjs.org/meta/andrizz/TM_Country_teams_INT_matches.meta.js
// @grant        none
// @license MIT
// ==/UserScript==

var country = SESSION["country"];
$("li a.country_link").each(function(){
    var flag = $(this).attr("href").replace("/national-teams/","").replace("/","");
    if (flag == country) {
        $(this).parent().parent().parent().css("background","radial-gradient(#86f308,transparent)");
    }
});
$("td a.country_link").each(function(){
    var flag = $(this).attr("href").replace("/national-teams/","").replace("/","");
    if (flag == country) {
        $(this).parent().css("background","radial-gradient(#86f308,transparent)");
        if ($(this).parent().hasClass("hometeam_flag")) {
            $(this).parent().parent().parent().css("background","radial-gradient(#86f308,transparent)");
        }
    }
});