Sleazy Fork is available in English.

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

Disable slide transitions because they're annoying; move indicator to the side where it doesn't obscure the image; preload images. 2021-09-26 03:20:14

  1. // ==UserScript==
  2. // @name Better BookSusi.com gallery - no gallery transitions, indicator moved to the side
  3. // @namespace Violentmonkey Scripts
  4. // @match https://booksusi.com/*
  5. // @grant GM_addStyle
  6. // @version 1.3
  7. // @author -
  8. // @description Disable slide transitions because they're annoying; move indicator to the side where it doesn't obscure the image; preload images. 2021-09-26 03:20:14
  9. // @run-at document-idle
  10. // ==/UserScript==
  11.  
  12.  
  13. // Disable slide transitions and blend-in transitions.
  14. // Note that blend-in transitions need to be kept (even if very short) because setting
  15. // the transitions to "none" breaks the script and after exiting the image you cannot
  16. // click on anything any more.
  17. GM_addStyle(`
  18. .blueimp-gallery > .slides > .slide {
  19. transition: none !important;
  20. }
  21. div#blueimp-gallery {
  22. transition: opacity 0.01s linear !important;
  23. }
  24. img.slide-content {
  25. transition: opacity 0.01s linear !important;
  26. }
  27. .blueimp-gallery > .indicator {
  28. left: 90% !important;
  29. }
  30. `);
  31.  
  32.  
  33. // Preload images so you don't have to wait for them to load when browsing the gallery
  34. var pics = [] // list of images
  35.  
  36. // Find image links
  37. $("div.flickity-slider").ready(function () {
  38. $("a.slick-image").each(function(i, elm) {
  39. pics.push(elm.href)
  40. })
  41. })
  42.  
  43. // Place images in the page, making them invisible (0px * 0px)
  44. $("div.girl_description").ready(function () {
  45. pics_str = " "
  46. pics.forEach(function (url, i) {
  47. pics_str = pics_str + " <img src=" + '"' + url + '"' + " style=" + '"' + "width: 0px; height: 0px;" + '"' + "/>"
  48. })
  49. $("div.girl_description").append(pics_str)
  50. })