diff --git a/css/enhancedsteam-chrome.css b/css/enhancedsteam-chrome.css index 5dc876599..526cd0cf3 100644 --- a/css/enhancedsteam-chrome.css +++ b/css/enhancedsteam-chrome.css @@ -64,29 +64,29 @@ background-image: url("chrome-extension://__MSG_@@extension_id__/img/itad.png"); } -.es_sites_icons.es_steamrepcn_icon:after { +.es_sites_icons.es_steamrepcn_icon:before { background-image: url("chrome-extension://__MSG_@@extension_id__/img/ico/srcn.png"); } -.es_sites_icons.es_steamrep_icon:after { +.es_sites_icons.es_steamrep_icon:before { background-image: url("chrome-extension://__MSG_@@extension_id__/img/ico/steamrep.png"); background-color: rgb(235, 235, 235); } -.es_sites_icons.es_steamdbcalc_icon:after { +.es_sites_icons.es_steamdbcalc_icon:before { background-image: url("chrome-extension://__MSG_@@extension_id__/img/ico/steamdb.png"); } -.es_sites_icons.es_steamgifts_icon:after { +.es_sites_icons.es_steamgifts_icon:before { background-image: url("chrome-extension://__MSG_@@extension_id__/img/ico/steamgifts.png"); } -.es_sites_icons.es_steamtrades_icon:after { +.es_sites_icons.es_steamtrades_icon:before { background-image: url("chrome-extension://__MSG_@@extension_id__/img/ico/steamtrades.png"); } -.es_sites_icons.es_astats_icon:after { +.es_sites_icons.es_astats_icon:before { background-image: url("chrome-extension://__MSG_@@extension_id__/img/ico/achievementstats.png"); } -.es_sites_icons.es_backpacktf_icon:after { +.es_sites_icons.es_backpacktf_icon:before { background-image: url("chrome-extension://__MSG_@@extension_id__/img/ico/backpacktf.png"); } -.es_sites_icons.es_astatsnl_icon:after { +.es_sites_icons.es_astatsnl_icon:before { background-image: url("chrome-extension://__MSG_@@extension_id__/img/ico/astatsnl.png"); } diff --git a/css/enhancedsteam-firefox.css b/css/enhancedsteam-firefox.css index 8d8fbaa7c..b0269aee0 100644 --- a/css/enhancedsteam-firefox.css +++ b/css/enhancedsteam-firefox.css @@ -68,28 +68,28 @@ background-image: url("moz-extension://__MSG_@@extension_id__/img/itad.png"); } -.es_sites_icons.es_steamrepcn_icon:after { +.es_sites_icons.es_steamrepcn_icon:before { background-image: url("moz-extension://__MSG_@@extension_id__/img/ico/srcn.png"); } -.es_sites_icons.es_steamrep_icon:after { +.es_sites_icons.es_steamrep_icon:before { background-image: url("moz-extension://__MSG_@@extension_id__/img/ico/steamrep.png"); } -.es_sites_icons.es_steamdbcalc_icon:after { +.es_sites_icons.es_steamdbcalc_icon:before { background-image: url("moz-extension://__MSG_@@extension_id__/img/ico/steamdb.png"); } -.es_sites_icons.es_steamgifts_icon:after { +.es_sites_icons.es_steamgifts_icon:before { background-image: url("moz-extension://__MSG_@@extension_id__/img/ico/steamgifts.png"); } -.es_sites_icons.es_steamtrades_icon:after { +.es_sites_icons.es_steamtrades_icon:before { background-image: url("moz-extension://__MSG_@@extension_id__/img/ico/steamtrades.png"); } -.es_sites_icons.es_astats_icon:after { +.es_sites_icons.es_astats_icon:before { background-image: url("moz-extension://__MSG_@@extension_id__/img/ico/achievementstats.png"); } -.es_sites_icons.es_backpacktf_icon:after { +.es_sites_icons.es_backpacktf_icon:before { background-image: url("moz-extension://__MSG_@@extension_id__/img/ico/backpacktf.png"); } -.es_sites_icons.es_astatsnl_icon:after { +.es_sites_icons.es_astatsnl_icon:before { background-image: url("moz-extension://__MSG_@@extension_id__/img/ico/astatsnl.png"); } diff --git a/css/enhancedsteam.css b/css/enhancedsteam.css index 41a036761..1a8b4f094 100644 --- a/css/enhancedsteam.css +++ b/css/enhancedsteam.css @@ -2250,14 +2250,6 @@ input[type=checkbox].es_dlc_selection:checked + label { color: #ffffff; } -.es_profile_link a { - display: inline-block; - margin-top: 10px; -} -.es_profile_link:first-child a { - margin-top: 0; -} - /*************************************** * Users profiles * add_community_profile_links() @@ -2810,12 +2802,13 @@ input[type=checkbox].es_dlc_selection:checked + label { display: inline-flex; align-items: center; } -.es_sites_icons:not(.es_none):after, .es_sites_custom_icon { + +.es_sites_icons:not(.es_none):before, .es_sites_custom_icon { content: ""; display: inline-block; width: 16px; height: 16px; - margin: 0 4px; + margin: 0 5px 0 0; background-color: #222222; background-repeat: no-repeat; background-size: 16px !important; @@ -2826,11 +2819,10 @@ input[type=checkbox].es_dlc_selection:checked + label { 0 0 0 1px rgba(193, 193, 193, 0.17); vertical-align: top; } -.es_sites_icons.es_gray:after, .es_sites_icons .es_gray { +.es_sites_icons.es_gray:before, .es_sites_icons .es_gray { filter: grayscale(100%); } - /** * Flags */ diff --git a/js/content/community.js b/js/content/community.js index 7475ad8f8..7db35ed8f 100644 --- a/js/content/community.js +++ b/js/content/community.js @@ -362,6 +362,23 @@ let CommunityCommon = (function() { } }; + self.makeProfileLink = function (id, link, name, iconType, iconUrl) { + let mainType = iconUrl ? "none" : iconType; + let result = + `
`; + return result; + } + return self; })(); @@ -481,37 +498,37 @@ let ProfileHomePageClass = (function(){ let links = [ { "id": "steamrep", - "link": `//steamrep.com/profiles/${steamId}`, + "link": `https://steamrep.com/profiles/${steamId}`, "name": "SteamRep", }, { "id": "steamdbcalc", - "link": `//steamdb.info/calculator/?player=${steamId}`, + "link": `https://steamdb.info/calculator/?player=${steamId}`, "name": "SteamDB", }, { "id": "steamgifts", - "link": `//www.steamgifts.com/go/user/${steamId}`, + "link": `https://www.steamgifts.com/go/user/${steamId}`, "name": "SteamGifts", }, { "id": "steamtrades", - "link": `//www.steamtrades.com/user/${steamId}`, + "link": `https://www.steamtrades.com/user/${steamId}`, "name": "SteamTrades", }, { "id": "astats", - "link": `//www.achievementstats.com/index.php?action=profile&playerId=${steamId}`, + "link": `https://www.achievementstats.com/index.php?action=profile&playerId=${steamId}`, "name": "Achievement Stats", }, { "id": "backpacktf", - "link": `//backpack.tf/profiles/${steamId}`, + "link": `https://backpack.tf/profiles/${steamId}`, "name": "Backpack.tf", }, { "id": "astatsnl", - "link": `//astats.astats.nl/astats/User_Info.php?steamID64=${steamId}`, + "link": `https://astats.astats.nl/astats/User_Info.php?steamID64=${steamId}`, "name": "AStats.nl", } ]; @@ -529,17 +546,10 @@ let ProfileHomePageClass = (function(){ // Build the links HTML let htmlstr = ""; - links.forEach(link => { - if (!SyncedStorage.get("profile_" + link.id)) { return; } - - htmlstr += - `