Better BookSusi.com gallery - no gallery transitions, indicator moved to the side

Disable slide transition between images, they're annoying; move indicator to the side where it doesn't obscure the image; preload images. 2021-09-26 03:03:52

Από την 26/09/2021. Δείτε την τελευταία έκδοση.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name        Better BookSusi.com gallery - no gallery transitions, indicator moved to the side
// @namespace   Violentmonkey Scripts
// @match       https://booksusi.com/*
// @grant       GM_addStyle
// @version     1.2
// @author      -
// @description Disable slide transition between images, they're annoying; move indicator to the side where it doesn't obscure the image; preload images. 2021-09-26 03:03:52
// @run-at      document-idle
// ==/UserScript==

GM_addStyle(`
  .blueimp-gallery > .slides > .slide {
    transition: none !important;
  }
  .blueimp-gallery > .indicator {
    left: 90% !important;
  }
`);

// preload images so you don't have to wait for them to load when browsing the gallery
var pics = [] // list of images

// find image links
$("div.flickity-slider").ready(function () {
  $("a.slick-image").each(function(i, elm) {
    pics.push(elm.href)
  })
})

// place images in the page, making them invisible (0px * 0px)
$("div.girl_description").ready(function () {
  pics_str = "   "
  pics.forEach(function (url, i) {
    pics_str = pics_str + " <img src=" + '"' + url + '"' + " style=" + '"' + "width: 0px; height: 0px;" + '"' + "/>"
  })
  $("div.girl_description").append(pics_str)
})