Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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