Lemmy Image Expand

Auto expands all image posts except NSFW ones.

< Rückmeldungen auf Lemmy Image Expand

Rezension: Gut - Skript funktioniert

§
Veröffentlicht: 11.11.2023
Bearbeitet: 11.11.2023

Works exactly as intended.

If you want it to open NSFW posts as well, change this code:

      uniqueList.forEach(function(imgPreview) {
        const postListing = imgPreview.closest(".post-listing");
        const isExpanded = postListing.querySelector('.img-expanded') != null;
        const isNsfw = postListing.querySelector('.thumbnail.img-blur') != null;
        if(!isExpanded && !isNsfw) {
          imgPreview.click();
        }

To this:

      uniqueList.forEach(function(imgPreview) {
        const postListing = imgPreview.closest(".post-listing");
        const isExpanded = postListing.querySelector('.img-expanded') != null;
        if(!isExpanded) {
          imgPreview.click();
        }

Antwort schreiben

Anmelden um eine Antwort zu senden.