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

bigger images/center-alignment and 1080p optimization

Versione datata 18/10/2021. Vedi la nuova versione l'ultima versione.

Autore
Alistair1231
Valutazione
0 0 0
Versione
0.2
Creato il
17/10/2021
Aggiornato il
18/10/2021
Dimensione
2,28 KB
Licenza
GPL-3.0
Applica a

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;
          }
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元