Fitgirl repacks bigger images/center-alignment and 1080p optimization

bigger images/center-alignment and 1080p optimization

目前为 2022-01-23 提交的版本。查看 最新版本

作者
Alistair1231
评分
0 0 0
版本
0.4.2
创建于
2021-10-17
更新于
2022-01-23
大小
5.4 KB
许可证
GPL-3.0
适用于

If you use 720p or ultra-wide you might want to change 1920px to whatever your width is:

 jQuery(".site").css("max-width", "1920px");
    jQuery(".entry-content").css("max-width", "1920px");
    jQuery("#masthead").css("max-width","1920px") // search bar

If the images are too small/big for your taste change the 2/2.5x multiplier to your liking:

if (element.loading == "lazy") {
            // preview images
            element.width *= 2.5;
            element.height *= 2.5;

            element.src=element.src.replace(/(.*)\.240p.jpg$/,"$1.480p.jpg");
          } else {
            // cover images
            element.width *= 2;
            element.height *= 2;
          }

0.4: fixed some image not loading due to inconsistent naming from riotpixel

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元