你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/552737-better-greasy-fork/discussions/313298,源站連結 點此以跳轉。
通过此功能包提高 Greasy Fork 的可用性:添加标识符图标、用于编辑描述/评论的完整 HTML 工具栏以及直接下载按钮。还包括页面内容的 100 多种语言翻译功能,并允许通过元数据进行高级自定义。旨在使脚本导航和管理更加实用和有条理的技术工具。
px value in the following function function createIconElement(src, isHeader = false) { to make the icons smaller or larger—whichever looks best to you:
/* around line 664 */
function createIconElement(src, isHeader = false) {
const img = document.createElement('img');
img.src = src;
img.alt = '';
if (isHeader) {
// ICON SHOWN ON THE SCRIPT PAGE
img.style.cssText = `
width: 80px; // CHANGE THE VALUE HERE
height: 80px; // CHANGE THE VALUE HERE
margin-right: 10px;
vertical-align: middle;
border-radius: 4px;
object-fit: contain;
pointer-events: none;
`;
} else {
// ICON SHOWN ON OTHER PAGES
img.style.cssText = `
width: 40px; // CHANGE THE VALUE HERE
height: 40px; // CHANGE THE VALUE HERE
margin-right: 8px;
vertical-align: middle;
border-radius: 3px;
object-fit: contain;
pointer-events: none;
`;
}
img.loading = 'lazy';
return img;
}
For me, on the scripts page or search page, the icon, title and description were too big. I like more compact design, thank you.