Skip to content

Instantly share code, notes, and snippets.

@Tithen-Firion
Last active August 25, 2018 21:35
Show Gist options
  • Save Tithen-Firion/fddac01167c535fa8e8ce8ddf798861e to your computer and use it in GitHub Desktop.
Save Tithen-Firion/fddac01167c535fa8e8ce8ddf798861e to your computer and use it in GitHub Desktop.
Steam long images fixer. Adds minimal height to long images uploaded with fake resolution
javascript:(function(){var%20a=document.createElement("style");a.innerHTML=".publishedfile_popup_screenshot,.publishedfile_popup_screenshot>img,.profile_media_item,.imgWallItem{min-height:100px}",document.head.appendChild(a),[].forEach.call(document.getElementsByTagName("iframe"),function(e){e.contentDocument.head.appendChild(a.cloneNode(true))})})();
var style = document.createElement("style");
style.innerHTML= ".publishedfile_popup_screenshot,.publishedfile_popup_screenshot>img,.profile_media_item,.imgWallItem{min-height:100px}";
document.head.appendChild(style);
[].forEach.call(document.getElementsByTagName("iframe"),function(e) {
e.contentDocument.head.appendChild(style.cloneNode(true));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment