你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/552737-better-greasy-fork/discussions/313298,源站連結 點此以跳轉

Greasy Fork 增强

通过此功能包提高 Greasy Fork 的可用性:添加标识符图标、用于编辑描述/评论的完整 HTML 工具栏以及直接下载按钮。还包括页面内容的 100 多种语言翻译功能,并允许通过元数据进行高级自定义。旨在使脚本导航和管理更加实用和有条理的技术工具。

< 脚本 Greasy Fork 增强 的反馈

提问 / 留言

§
发布于:2025-10-27

For me, on the scripts page or search page, the icon, title and description were too big. I like more compact design, thank you.

OHAS作者
§
发布于:2025-10-27

Hello! Thank you for using Better Greasy Fork!

You can change the 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;
}


I recommend using equal width and height values (1 × 1) so the icon doesn’t get distorted.
I hope you find a size you like better. Remember, Better Greasy Fork DOES NOT change the title size—every title and piece of text on Greasy Fork stays at its default page value; we only add the icons next to them!

发布留言

登录以发布留言。