Mattlau04
10/15/20 08:11PM
Hub browsing userscript
Hello fellow hypnohub users, i made a userscript to allow switching pages when viewing pool a while ago but i figured it'd be better to share it to the world, so here's a link!

h1. Download links:
h4. /!\ You must have a userscript manager installed:
<<chrome.google.com/webstor...kebhmkfjojejmpbldmpobfkfo|tampermonkey for chrome>> | <<addons.mozilla.org/en-US/firefox/addon/tampermonkey/|tempermonkey for firefox>>

h5. Here are the download links for the script (i recommend using the github link)
h5. <<gist.githubusercontent.co...20arrow%20control.user.js|Github (just click the link and it will open the install box)>>
<<greasyfork.org/en/scripts/413396-hypnohub-arrow-control|Greasyfork (requires a greasyfork account)>>

h1. Controls:

h4. Any page with a page indicator at the bottom (e.g: post index, forums, etc...):
Left arrow: Go to previous page
Right arrow: Go to next page
Ctrl + left arrow: Go to first page
Ctrl + right arrow: Go to last page

h4. Post page:
Left arrow: Go to previous page in pool
Right arrow: Go to next page in pool
Ctrl + left arrow: Go to first page in pool
Ctrl + right arrow: Go to last page in pool
sleeperhit
10/15/20 08:19PM
Mattlau04 said:
Hello fellow hypnohub users, i made a userscript to allow switching pages when viewing pool a while ago but i figured it'd be better to share it to the world, so here's a link!

greasyfork.org/en/scripts/413396-hypnohub-arrow-control

(controls just in case:
Left arrow = previous page
Right arrow = next page
very simple)


I've never heard of GreasyFork, so I don't have an account nor access to this. Explain further; is this, say, code that an admin could incorporate into the site? Just a proof-of-concept?
Mattlau04
10/15/20 11:12PM
sleeperhit said:
I've never heard of GreasyFork, so I don't have an account nor access to this. Explain further; is this, say, code that an admin could incorporate into the site? Just a proof-of-concept?


Uh, i didn't knew GreasyFork needed accounts to access scripts, i'll upload it somewhere else later :/

This code is a userscript, so it's something you add client side and allows to modify website behavior.
It's not really a proof of concept since it works probably as best as it can and is well usable.
It couldn't just be copy-pasted directly into the site (well it could but it would be extremely unoptimized), but the code is so simple it would probably just take a few minutes to implement into the site (just adding 3 lines into the site's code could implement it)
TheMadPrince
10/16/20 10:32AM
Thank you for making this! It's simple and effective ; very narrow use case, but hey, every little quality of life improvement helps <3

I wonder if it would be possible to have a different sort of key combination to browse through search result pages in general, or even just the "posts" gallery, though. Say if I typed "femsub", and clicked on whatever image in the results, then I could use keys to navigate from search result to search result.
Not that that would necessarily be useful for me, since I personally like to open only thumbnails which seem attractive for my tastes, but may be interesting for some.
Mattlau04
10/16/20 11:28AM
TheMadPrince said:
Thank you for making this! It's simple and effective ; very narrow use case, but hey, every little quality of life improvement helps <3

I wonder if it would be possible to have a different sort of key combination to browse through search result pages in general, or even just the "posts" gallery, though. Say if I typed "femsub", and clicked on whatever image in the results, then I could use keys could navigate from search result to search result.
Not that that would necessarily be useful for me, since I personally like to open only thumbnails which seem attractive for my tastes, but may be interesting for some.


That would be quite useful and easy to implement indeed, i'll get to it


Edit: i just realised i completly misundertood the message, but this could still be implemented using the next and previous button at the bottom left of the page.

The problem is that it would only work for getting to the next post in general, not for a tag, and there really isn't a way to get to the next post of a tag :/
Mattlau04
10/16/20 08:39PM
Well it's added, you can now browse the page index with it:

Left arrow is previous page
Right arrow is next page
Ctrl + left arrow is back to first page
Ctrl + right is go to last page

You can just reinstall with the link above to update
Mattlau04
10/27/20 10:30PM
v0.3: Now doesn't change page when you're in a textbox (so when editing tags, searching something, making a comment etc...)
Mattlau04
06/30/21 06:58PM
v0.4: should now allow to browse on every single page with pages (so forums, pool index, everything)

Also added a updateURL so tampermonkey can update automatically to future versions
To update, just delete your current version of the script and re-install using the post at the top

If you find any page where this doesn't work or have any idea for improvements, don't hesitate to tell me!
Mattlau04
06/30/21 08:03PM
v0.5: fixed a bug that made "ctrl+right arrow" only work on the post index and nothing else, oops

for instructions on updating, follow the post above
Mattlau04
08/04/21 03:52AM
v0.6: the big change is that you can now use ctrl + left on a post page to go to the first page of the pool, or ctrl + right to go to the last

also a pretty important bug fix that would make the ctrl + left and ctrl + right not work on the post index if the page number contained a 0 (it was a dumb regex error, should be fixed)
Argonis
08/07/21 11:17AM
this is really neat, if you made a script that moved pages in general it make going through say your favorites list a lot easier.
1


Reply | Forum Index