Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> [Script] (MPV) Multi-Page Viewer CG-Mode and Autoplayer

 
post Dec 4 2021, 20:42
Post #1
Gilgamesch



Casual Poster
***
Group: Gold Star Club
Posts: 152
Joined: 6-December 09
Level 463 (Godslayer)


Multi-Page Viewer (MPV) CG Mode and Autoplayer

Hi, i created a two expansions for the Multi-Page Viewer that i find very useful.


CG-Mode

When you enable CG-Mode, it will scale all your images to fit your browser window, as long as the aspect ratio allows it. This will basically show you one image on your screen at a time. Can be toggled on or off. Works best with center mode.
Then click the image to advance.


Autoplayer


A simple function that advanced to the next image automatically with a delay. You can toggle it on or off, and set the speed by hovering over the number below the start and use your scoll wheel.

Download:
Attached File  CGMode_Autoplayer_0.2.user.js.txt ( 9.01k ) Number of downloads: 691



Try it out, let me know what you think.


This post has been edited by Gilgamesch: Dec 9 2021, 00:58
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 4 2021, 21:01
Post #2
Shank



Roll for Initiative
**********
Group: Global Mods
Posts: 9,400
Joined: 19-May 12
Level 500 (Ponyslayer)


QUOTE(Gilgamesch @ Dec 4 2021, 18:42) *

EDIT: sorry wrong forum, if a mod sees this, can you mode the threat to Site Discussion & Help Desk? Thanks.

Sure thing. Might be worth linking to this thread in: https://forums.e-hentai.org/index.php?showtopic=199743 as well.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 5 2021, 10:20
Post #3
Mayriad



SUPER ★ BUSY ★ TIME
*******
Group: Global Mods
Posts: 2,061
Joined: 18-December 10
Level 135 (Lord)


Added to userscript index, which is the link Shank posted above.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 9 2021, 00:59
Post #4
Gilgamesch



Casual Poster
***
Group: Gold Star Club
Posts: 152
Joined: 6-December 09
Level 463 (Godslayer)


Update:

fixed broken unicode and changed autoplayer, so that you can modify the speed by hovering over the number and using scroll wheel.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 17 2022, 19:57
Post #5
mewto51



Newcomer
*
Group: Gold Star Club
Posts: 14
Joined: 3-April 15
Level 121 (Newbie)


QUOTE(Gilgamesch @ Dec 9 2021, 00:59) *

Update:

fixed broken unicode and changed autoplayer, so that you can modify the speed by hovering over the number and using scroll wheel.

great script near perfect but i have a request is it possible to add feature too remember last delay time.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 17 2022, 21:48
Post #6
atasitian



Casual Poster
****
Group: Members
Posts: 422
Joined: 18-July 10
Level 322 (Godslayer)


QUOTE(mewto51 @ Feb 17 2022, 20:57) *
great script near perfect but i have a request is it possible to add feature too remember last delay time.

I've tried to add the feature to the script, but I have not tested my code at all. (In fact, I don't even have the MPV Hath Perk.)
So try the modified script below at your own risk; it might just be broken.

Attached File  CGMode_Autoplayer_0.1.1.user.js.txt ( 9.76k ) Number of downloads: 15


Edit: Scratch that, thanks to Shank I was able to test the code. Unfortunately, the existing version didn't work for me at all (using Firefox + Greasemonkey). Problems ranged from GM_addStyle being undefined to broken interactions between page code and userscript code. So here's a new version:

Attached File  CGMode_Autoplayer_0.1.3.user.js.txt ( 12.5k ) Number of downloads: 22

It contains some rather intrusive changes in the way the code is injected, but all the core functionality is the same. Also, it works in Greasemonkey and in my test it did save the delay time automatically, so yay.

(However, if the original version of the userscript worked for you, then my first attempt (version 0.1.1) should also work, I think.)

This post has been edited by atasitian: Feb 18 2022, 10:17
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 21 2022, 22:20
Post #7
mewto51



Newcomer
*
Group: Gold Star Club
Posts: 14
Joined: 3-April 15
Level 121 (Newbie)


QUOTE(atasitian @ Feb 17 2022, 21:48) *

I've tried to add the feature to the script, but I have not tested my code at all. (In fact, I don't even have the MPV Hath Perk.)
So try the modified script below at your own risk; it might just be broken.

Attached File  CGMode_Autoplayer_0.1.1.user.js.txt ( 9.76k ) Number of downloads: 15


Edit: Scratch that, thanks to Shank I was able to test the code. Unfortunately, the existing version didn't work for me at all (using Firefox + Greasemonkey). Problems ranged from GM_addStyle being undefined to broken interactions between page code and userscript code. So here's a new version:

Attached File  CGMode_Autoplayer_0.1.3.user.js.txt ( 12.5k ) Number of downloads: 22

It contains some rather intrusive changes in the way the code is injected, but all the core functionality is the same. Also, it works in Greasemonkey and in my test it did save the delay time automatically, so yay.

(However, if the original version of the userscript worked for you, then my first attempt (version 0.1.1) should also work, I think.)

can you add a feature too remember last cg size button option
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 22 2022, 10:16
Post #8
atasitian



Casual Poster
****
Group: Members
Posts: 422
Joined: 18-July 10
Level 322 (Godslayer)


QUOTE(mewto51 @ Feb 21 2022, 23:20) *
can you add a feature too remember last cg size button option

Sure.

Attached File  CGMode_Autoplayer_0.1.4.user.js.txt ( 12.68k ) Number of downloads: 94

This version remembers the state of the "CG mode" toggle.
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: 14th July 2025 - 11:35