您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Makes better use of screen space and replaces pictures with high res ones.
// ==UserScript== // @name Grailed high res pics // @namespace https://greasyfork.org/en/users/230946-odinbrood // @match http*://www.grailed.com/* // @grant GM_addStyle // @version 1.2 // @author OdinBrood // @description Makes better use of screen space and replaces pictures with high res ones. // ==/UserScript== var observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { var allImg = document.getElementsByTagName("img"), i = 0, img; var pattern = /resize.*compress\//; setTimeout(() => { while (img = allImg[i++]) { if (img.srcset.match(pattern) && img.height > 299) { img.srcset = img.src.replace(pattern, ""); } } }, 50); GM_addStyle(` .FiltersInstantSearch, .feed, div[class^='Module--'], .container, #wardrobe, .SimilarListings, .-container, .ForYou, .LayoutContainer, .RelatedDesigners { max-width: 99% !important; } .feed-item { max-width: 720px !important; max-height: 1209px !important; } .PhotoGallery--Photo { height: ` + (screen.height - 100) + `px !important; } `); }); }); observer.observe(document.body, { childList: true, subtree: true });