Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> [Script] Image LazyLoad V1.2

 
post Dec 7 2021, 22:10
Post #1
Felipons



Newcomer
*
Group: Members
Posts: 39
Joined: 19-October 09
Level 426 (Dovahkiin)


My objective was for the images to work like nhentai, so this script does a lazyload while browsing a gallery, this way it doesn't do a full page reload when you change pages, and also doesn't reload an image you've already loaded.

V1.2.8: Attached File  EH_Images_LazyLoad_v1.2.8.user.js.txt ( 19.05k ) Number of downloads: 32


PC Shortcuts:
- Next Image: D or (Arrow Right) or Number 6 (Number Pad) or Click Right Side of the Image
- Previous Image: A or Arrow Left or Number 4 (Number Pad) or Click Left Side of the Image
- Full-screen: F or Number 0 (Number Pad) or Number 9 (Number Pad)
- Show/Hide Extra Info: H or Number 3 (Number Pad)
- Go Back to Gallery: Q or Number 1 (Number Pad)
- Reload Image: R or Number 2 (Number Pad)
- Scroll Up: W or Number 8 (Number Pad)
- Scroll Down: S or Number 5 (Number Pad)


Space will either scroll down or go to the next image if you are already at the end of the page.
Both Full-screen and Show/Hide Info are saved on localStorage, and if you go to the next gallery it'll keep use the way you configured last.

Android:
- Next Image: Swipe Left or Click Right Side
- Previous Image: Swipe Right or Click Left Side
- Full-screen: Swipe Down
- Reload Image: Swipe Up


Update Log: Here

Older Versions
V1.2: Attached File  EH_Images_LazyLoad_v1.2.user.js.txt ( 17.43k ) Number of downloads: 995

V1.11: Attached File  EH___Images_LazyLoad_v1.11.user.js.txt ( 16.43k ) Number of downloads: 52

V1.1: Attached File  EH___LazyLoad.user.js.txt ( 16.06k ) Number of downloads: 48

V1.0 Attached File  eHentai___LazyLoad.user.js.txt ( 17.57k ) Number of downloads: 29


This post has been edited by Felipons: Jan 1 2024, 15:49
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 8 2021, 13:00
Post #2
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,045
Joined: 24-March 12
Level 500 (Godslayer)


Added to script index

Albeit I'd call the script "image lazy load" as it operates over the images once you are o /s/ rather than at gallery level. The API info use is cool though.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 23 2021, 21:53
Post #3
Felipons



Newcomer
*
Group: Members
Posts: 39
Joined: 19-October 09
Level 426 (Dovahkiin)


Update Log

V1.2.8
CODE
Removed the obligatorily of objects #i7, #i6, #i5 after they removed object #i7 in the last update
Corrected the function of the buttons "Load All" "Fullcreen" and "Reload" on some tables, that didn't work with the function onClick


V1.2
CODE
Loads the next two images in advance, to remove the delay for when you go to the next image


V1.11
CODE
   -> Locked Scroll while Swipping on Image.
   -> Added Image Click on Android
   -> Increased Swipe time for slower people like me
   -> Corrected background color on e-h (still dark theme but it'll not have the beige border)


V1.1
CODE
Swipe:
   -> Left for Next
   -> Right for Previous
   -> Down for Fullscreen
   -> Up to Reload
Image Click: If you click at the first half of the image it'll go to the Previous, and the 2nd half Next


This post has been edited by Felipons: Jan 1 2024, 15:53
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 11 2022, 12:12
Post #4
Brufh



Newcomer
*
Group: Members
Posts: 22
Joined: 30-January 10
Level 52 (Journeyman)


Thank you for the script.

This post has been edited by Brufh: Nov 11 2022, 12:21
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 11 2022, 13:48
Post #5
Lady_Slayer



Member of the Bal'masqué
********
Group: Catgirl Camarilla
Posts: 3,733
Joined: 20-December 16
Level 500 (Ponyslayer)


Thumbs up
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Oct 29 2023, 22:30
Post #6
Brufh



Newcomer
*
Group: Members
Posts: 22
Joined: 30-January 10
Level 52 (Journeyman)


It seems like the pre-loading aspect stopped working since this week.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 22 2023, 03:12
Post #7
c00m



Lurker
Group: Lurkers
Posts: 1
Joined: 23-October 23
Level 14 (Novice)


There has apparently been some change to the markup the script relies on, though no idea what exactly it was, since I'm still pretty new here.

I just removed the references/uses to the #i7 element in the script and it seems to at least fix the preloading part.


"hotfixed" script in attachment, till OP finds the time to take a proper look at things.

Attached File  eh_lazyload_1.2_hotfix_1.txt ( 17.07k ) Number of downloads: 26


This post has been edited by c00m: Nov 22 2023, 03:14
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 29th April 2024 - 21:48