Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Commit

Permalink
Fixed mixed content warnings
Browse files Browse the repository at this point in the history
- removed HTTP schema and replaced images URLs and forms with HTTPS
compatible domains so ES no longer triggeres mixed-content warnings
  • Loading branch information
JoiNNN committed Feb 4, 2017
1 parent 10a2001 commit 7a8a93a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
16 changes: 8 additions & 8 deletions css/enhancedsteam.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ span.platform_img {

span.platform_img.steamplay {
width: 72px;
background-image: url( 'http://store.akamai.steamstatic.com/public/images/v6/icon_steamplay.png' );
background-image: url( '//steamstore-a.akamaihd.net/public/images/v6/icon_steamplay.png' );
}

span.platform_img.win {
background-image: url( 'http://store.akamai.steamstatic.com/public/images/v6/icon_platform_win.png' );
background-image: url( '//steamstore-a.akamaihd.net/public/images/v6/icon_platform_win.png' );
}

span.platform_img.mac {
background-image: url( 'http://store.akamai.steamstatic.com/public/images/v6/icon_platform_mac.png' );
background-image: url( '//steamstore-a.akamaihd.net/public/images/v6/icon_platform_mac.png' );
}

span.platform_img.linux {
background-image: url( 'http://store.akamai.steamstatic.com/public/images/v6/icon_platform_linux.png' );
background-image: url( '//steamstore-a.akamaihd.net/public/images/v6/icon_platform_linux.png' );
}

img.platform_small, .platform_img {
Expand Down Expand Up @@ -117,14 +117,14 @@ img.platform_small, .platform_img {
padding-top: 5px;
}
.apphub_HeaderTop.es_greenlight {
background-image: url('http://cdn.steamcommunity.com/public/images/sharedfiles/ig/gl_item_blue.jpg');
background-image: url('//steamcommunity-a.akamaihd.net/public/images/sharedfiles/ig/gl_item_blue.jpg');
background-position: left center;
}
.apphub_HeaderTop.es_greenlight.es_greenlit {
background-image: url('http://cdn.steamcommunity.com/public/images/sharedfiles/ig/gl_item_green.jpg');
background-image: url('//steamcommunity-a.akamaihd.net/public/images/sharedfiles/ig/gl_item_green.jpg');
}
.apphub_HeaderTop.es_greenlight.es_released {
background-image: url('http://cdn.steamcommunity.com/public/images/sharedfiles/ig/gl_item_green_shiny.jpg');
background-image: url('//steamcommunity-a.akamaihd.net/public/images/sharedfiles/ig/gl_item_green_shiny.jpg');
}
.wishlistRowItem {
overflow: initial !important;
Expand Down Expand Up @@ -233,7 +233,7 @@ input[type=checkbox].es_dlc_selection:checked + label {
}

#es_dlc_option_panel {
background: url(http://cdn.steamcommunity.com/public/images/profile/profile_header_bg_texture.jpg);
background: url('//steamcommunity-a.akamaihd.net/public/images/profile/profile_header_bg_texture.jpg');
border-bottom: 1px solid black;
}

Expand Down
22 changes: 11 additions & 11 deletions enhancedsteam.js
Original file line number Diff line number Diff line change
Expand Up @@ -4435,7 +4435,7 @@ function add_steam_client_link(appid) {
storage.get(function(settings) {
if (settings.showclient === undefined) { settings.showclient = true; storage.set({'showclient': settings.showclient}); }
if (settings.showclient) {
$('#ReportAppBtn').parent().prepend('<a class="btnv6_blue_hoverfade btn_medium steam_client_btn" href="steam://url/StoreAppPage/' + appid + '" style="display: block; margin-bottom: 6px;"><span><i class="ico16" style="background-image:url(http://store.steampowered.com/favicon.ico)"></i>&nbsp;&nbsp; ' + localized_strings.viewinclient + '</span></a>');
$('#ReportAppBtn').parent().prepend('<a class="btnv6_blue_hoverfade btn_medium steam_client_btn" href="steam://url/StoreAppPage/' + appid + '" style="display: block; margin-bottom: 6px;"><span><i class="ico16" style="background-image:url(//store.steampowered.com/favicon.ico)"></i>&nbsp;&nbsp; ' + localized_strings.viewinclient + '</span></a>');
}
});
}
Expand Down Expand Up @@ -5891,7 +5891,7 @@ function dlc_data_from_site(appid) {

if (data) {
$.each(data["dlc"], function(index, value) {
html += "<div class='game_area_details_specs'><div class='icon'><img src='http://www.enhancedsteam.com/gamedata/icons/" + escapeHTML(value['icon']) + "' align='top'></div><a class='name' title='" + escapeHTML(value['text']) + "'>" + escapeHTML(index) + "</a></div>";
html += "<div class='game_area_details_specs'><div class='icon'><img src='//www.enhancedsteam.com/gamedata/icons/" + escapeHTML(value['icon']) + "' align='top'></div><a class='name' title='" + escapeHTML(value['text']) + "'>" + escapeHTML(index) + "</a></div>";
});
}

Expand Down Expand Up @@ -5980,7 +5980,7 @@ function survey_data_from_site(appid) {
function dlc_data_for_dlc_page() {
var totalunowned = 0;
var sessionid;
var addunowned = "<form name=\"add_all_unowned_dlc_to_cart\" action=\"http://store.steampowered.com/cart/\" method=\"POST\"><input type=\"hidden\" name=\"action\" value=\"add_to_cart\">";
var addunowned = "<form name=\"add_all_unowned_dlc_to_cart\" action=\"//store.steampowered.com/cart/\" method=\"POST\"><input type=\"hidden\" name=\"action\" value=\"add_to_cart\">";

window.setTimeout(function() {
$.each($("div.dlc_page_purchase_dlc"), function(j, node){
Expand All @@ -5994,7 +5994,7 @@ function dlc_data_for_dlc_page() {

if (data) {
$.each(data["dlc"], function(index, value) {
html += "<div class='game_area_details_specs'><div class='icon'><img src='http://www.enhancedsteam.com/gamedata/icons/" + escapeHTML(value['icon']) + "' align='top'></div><a class='name'><span title='" + escapeHTML(value['text']) + "' style='cursor: default;'>" + escapeHTML(index) + "</span></a></div>";
html += "<div class='game_area_details_specs'><div class='icon'><img src='//www.enhancedsteam.com/gamedata/icons/" + escapeHTML(value['icon']) + "' align='top'></div><a class='name'><span title='" + escapeHTML(value['text']) + "' style='cursor: default;'>" + escapeHTML(index) + "</span></a></div>";
});
}

Expand Down Expand Up @@ -6183,7 +6183,7 @@ function add_achievement_completion_bar(appid) {
storage.get(function(settings) {
if (settings.showachinstore === undefined) { settings.showachinstore = true; storage.set({'showachinstore': settings.showachinstore}); }
if (settings.showachinstore) {
$(".myactivity_block").find(".details_block:first").after("<link href='http://steamcommunity-a.akamaihd.net/public/css/skin_1/playerstats_generic.css' rel='stylesheet' type='text/css'><div id='es_ach_stats' style='margin-bottom: 9px; margin-top: -16px; float: right;'></div>");
$(".myactivity_block").find(".details_block:first").after("<link href='//steamcommunity-a.akamaihd.net/public/css/skin_1/playerstats_generic.css' rel='stylesheet' type='text/css'><div id='es_ach_stats' style='margin-bottom: 9px; margin-top: -16px; float: right;'></div>");
$("#es_ach_stats").load("//steamcommunity.com/my/stats/" + appid + "/ #topSummaryAchievements", function(response, status, xhr) {
if (response.match(/achieveBarFull\.gif/)) {
var BarFull = $("#es_ach_stats").html().match(/achieveBarFull\.gif" width="([0-9]|[1-9][0-9]|[1-9][0-9][0-9])"/)[1];
Expand Down Expand Up @@ -7065,7 +7065,7 @@ function add_keylol_link() {
if (language == "schinese") { var title = "阅读游戏评测"; }
if (language == "tchinese") { var title = "閱覽遊戲評測"; }
html += "<a href='" + data + "/timeline'>" + title + "</a>&nbsp;";
html += "<img src='http://store.akamai.steamstatic.com/public/images/ico/iconExternalLink.gif' border='0' align='bottom'>";
html += "<img src='//steamstore-a.akamaihd.net/public/images/ico/iconExternalLink.gif' border='0' align='bottom'>";
html += "</div></div>";
$("div.game_details:first").after(html);
});
Expand All @@ -7088,7 +7088,7 @@ function add_steamcn_mods() {
storePageDataCN.get("link", function(data) {
if (language == "schinese") { var link = "完整汉化情报"; }
if (language == "tchinese") { var link = "更多漢化信息"; }
$("#es_c_mods").after("<a href='" + data + "/intel' class='all_languages' target='_blank'>" + link + "</a>&nbsp;<img src='http://store.akamai.steamstatic.com/public/images/v5/ico_external_link.gif' border='0' align='bottom'>");
$("#es_c_mods").after("<a href='" + data + "/intel' class='all_languages' target='_blank'>" + link + "</a>&nbsp;<img src='//steamstore-a.akamaihd.net/public/images/v5/ico_external_link.gif' border='0' align='bottom'>");
});
}

Expand Down Expand Up @@ -7841,14 +7841,14 @@ function add_es_background_selection() {
var steam64 = $(document.body).html();
var selected = false;
steam64 = steam64.match(/g_steamID = \"(.+)\";/)[1];
var html = "<form id='es_profile_bg' method='POST' action='http://www.enhancedsteam.com/gamedata/profile_bg_save.php'><div class='group_content group_summary'>";
var html = "<form id='es_profile_bg' method='POST' action='//www.enhancedsteam.com/gamedata/profile_bg_save.php'><div class='group_content group_summary'>";
html += "<input type='hidden' name='steam64' value='" + steam64 + "'>";
html += "<input type='hidden' name='appid' id='appid'>";
html += "<div class='formRow'><div class='formRowTitle' style='overflow: visible;'>" + localized_strings.custom_background + ":<span class='formRowHint' data-community-tooltip='" + localized_strings.custom_background_help + "'>(?)</span></div><div class='formRowFields'><div class='profile_background_current'><div class='profile_background_current_img_ctn'><div class='es_loading'><img src='//steamcommunity-a.akamaihd.net/public/images/login/throbber.gif'><span>"+ localized_strings.loading +"</div>";
html += "<img id='es_profile_background_current_image' src=''>";
html += "</div><div class='profile_background_current_description'><div id='es_profile_background_current_name'>";
html += "</div></div><div style='clear: left;'></div><div class='background_selector_launch_area'></div></div><div class='background_selector_launch_area'>&nbsp;<div style='float: right;'><span id='es_background_remove_btn' class='btn_grey_white_innerfade btn_small'><span>" + localized_strings.remove + "</span></span>&nbsp;<span id='es_background_save_btn' class='btn_grey_white_innerfade btn_small btn_disabled'><span>" + localized_strings.save + "</span></span></div></div></div></div>";
html += "</form><form id='es_profile_remove' method='POST' action='http://www.enhancedsteam.com/gamedata/profile_bg_remove.php'>";
html += "</form><form id='es_profile_remove' method='POST' action='//www.enhancedsteam.com/gamedata/profile_bg_remove.php'>";
html += "<input type='hidden' name='steam64' value='" + steam64 + "'>";
html += "</form>";
$(".group_content_bodytext").before(html);
Expand Down Expand Up @@ -7931,13 +7931,13 @@ function add_es_background_selection() {
function add_es_style_selection() {
if (window.location.pathname.indexOf("/settings") < 0) {
var steam64 = $(document.body).html().match(/g_steamID = \"(.+)\";/)[1];
var html = "<form id='es_profile_style' method='POST' action='http://api.enhancedsteam.com/profile_style/profile_style_save.php'><div class='group_content group_summary'>";
var html = "<form id='es_profile_style' method='POST' action='//api.enhancedsteam.com/profile_style/profile_style_save.php'><div class='group_content group_summary'>";
html += "<input type='hidden' name='steam64' value='" + steam64 + "'>";
html += "<div class='formRow'><div class='formRowTitle'>" + localized_strings.custom_style + ":<span class='formRowHint' data-community-tooltip='" + localized_strings.custom_style_help + "'>(?)</span></div><div class='formRowFields'><div class='profile_background_current'><div class='profile_background_current_img_ctn'><div id='es_style_loading'><img src='//steamcommunity-a.akamaihd.net/public/images/login/throbber.gif'><span>"+ localized_strings.loading +"</div>";
html += "<img id='es_profile_style_current_image' src='' style='margin-bottom: 12px;'>";
html += "</div><div class='profile_style_current_description'><div id='es_profile_style_current_name'>";
html += "</div></div><div style='clear: left;'></div><div class='background_selector_launch_area'></div></div><div class='background_selector_launch_area'>&nbsp;<div style='float: right;'><span id='es_style_remove_btn' class='btn_grey_white_innerfade btn_small'><span>" + localized_strings.remove + "</span></span>&nbsp;<span id='es_style_save_btn' class='btn_grey_white_innerfade btn_small btn_disabled'><span>" + localized_strings.save + "</span></span></div></div></div></div>";
html += "</form><form id='es_style_remove' method='POST' action='http://api.enhancedsteam.com/profile_style/profile_style_remove.php'>";
html += "</form><form id='es_style_remove' method='POST' action='//api.enhancedsteam.com/profile_style/profile_style_remove.php'>";
html += "<input type='hidden' name='steam64' value='" + steam64 + "'>";
html += "</form>";
$(".group_content_bodytext").before(html);
Expand Down

0 comments on commit 7a8a93a

Please sign in to comment.