NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Steam Community Market > Larger Thumbnails on Market Listings // @namespace http://jbout.in/ // @version 1.3 // @license MIT // @description Increasing the size of thumbnails on market listings. // @author Jer 'HLVE' // @match http://steamcommunity.com/market/search?q=* // @match https://steamcommunity.com/market/search* // @require http://code.jquery.com/jquery-1.9.1.min.js // @grant GM_addStyle // @grant GM.getValue // @grant GM_log // ==/UserScript== // Avoid jQuery Collision. var $ = unsafeWindow.jQuery; GM_addStyle (` .market_listing_item_name, .market_table_value, .market_listing_game_name {font-family: calibri} .market_listing_searchresult .market_listing_their_price > span, .market_table_value {font-size: 12px !important} .largerResultImg { width:220px !important; height: auto !important } .market_listing_item_name { font-size: 18px !important; width: 230px !important; display: inline-block; white-space: break-spaces; } .market_listing_item_name_block { margin-top: 5px !important; line-height: 20px !important } .market_table_value { vertical-align:top !important; margin-top: 5px !important; } .market_listing_game_name { font-size: 13px !important; font-variant-caps: all-small-caps; font-weight: bold } span.market_table_value.normal_price .normal_price { font-size: 16px !important; font-weight: bolder } .market_listing_searchresult .market_listing_their_price > span { margin-top: 5px !important } `); // Resize Market Item Image Function. function resizepic() { setTimeout(function(){ $('.market_listing_item_img').each(function(e, obj) { // Updating the image URL with a larger resolution version. var newurl = $(this).attr('src').replace(/\/(?=[^\/]*$)/, '/410fx410f'); $(this) .addClass("largerResultImg") .attr({ src: newurl, srcset: newurl }); }); }, 1300); }; (function() { // Resize Events on Next/Prev Pagination Clicks. var paginationButtons = "#searchResults_btn_prev, #searchResults_btn_next, .market_paging_pagelink, .market_sortable_column, .market_searchedForTerm"; $(document).on("click touchend", paginationButtons, resizepic()); $(window).on('load popstate', function(event) { resizepic(); }); // Initial Resize (On Page Load.) resizepic(); })();