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

bigger images/center-alignment and 1080p optimization

Per 23-01-2022. Zie de nieuwste versie.

Maker
Alistair1231
Beoordelingen
0 0 0
Versie
0.4.2
Gemaakt op
17-10-2021
Bijgewerkt op
23-01-2022
Grootte
5,4 KB
Licentie
GPL-3.0
Wordt toegepast op

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 元