"Scroll to next post" on various social media sites

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Jose Hidalgo
Posts: 222
Joined: 07 Mar 2021, 07:44

"Scroll to next post" on various social media sites

Post by Jose Hidalgo » 17 Oct 2021, 10:41

Hi all,

On my Windows browser (Firefox, sometimes Chrome) I have a daily use of social media : Facebook, Instagram, Twitter.
Those 3 sites have of course infinite scrolling, which we may love or hate.

There are ways of disabling infinite scrolling (e.g. disabling JavaScript), but they tend to break other features too.
Rather than disabling it, I was thinking about just pressing a couple keys (for example PageUp/PageDn) and automatically scrolling to the next/previous post.

I guess that could probably be achieved with AutoHotkey, but I don't know where to start.
My point is : I'd like to stop scrolling endlessly with my mouse wheel, sometimes going too far, then going back just a little, etc.
It would be much easier to just press a key and scroll automatically to the next post. So the next post would be placed at the same vertical position that the previous post was.
That may be made more difficult by the fact that not all posts have the same height. But maybe there's another way ?
Maybe somebody has already thought of a similar feature ?

Thanks in advance for your ideas/help.

User avatar
Chunjee
Posts: 1397
Joined: 18 Apr 2014, 19:05
Contact:

Re: "Scroll to next post" on various social media sites

Post by Chunjee » 17 Oct 2021, 10:49

With some editing you may get this to work with twitter (javascript) https://greasyfork.org/en/scripts/401114-facebook-j-k-scrolling

It appears to me that 'j' on the keyboard scrolls to the next post on facebook without any addons (desktop site)
Last edited by Chunjee on 25 Oct 2021, 21:38, edited 1 time in total.

Jose Hidalgo
Posts: 222
Joined: 07 Mar 2021, 07:44

Re: "Scroll to next post" on various social media sites

Post by Jose Hidalgo » 17 Oct 2021, 11:03

Thanks. For the record, j does nothing for me on FB. But nevermind. It's PageUp/Dn I'm interest in anyway.

So you think that a GreaseMonkey/TamperMonkey script would be more suitable for that purpose ? Because I wouldn't know where to start. At least with AHK I'm a little less lost.

Would the script have to be different for all FB, Insta and Twitter ? I was hoping that there would be a function that would get us to the next/previous post regardless of the social media website. In that case my goal could be achieved with a single and relatively simple script...

Jose Hidalgo
Posts: 222
Joined: 07 Mar 2021, 07:44

Re: "Scroll to next post" on various social media sites

Post by Jose Hidalgo » 17 Oct 2021, 11:08

I was thinking of something quite basic like this :

Code: Select all

PgUp::
Loop 5
    Click, WheelUp
return

PgDn::
Loop 5
    Click, WheelDown
return
Only of course it wouldn't need to be 5 but a variable value depending on the post length.

Jose Hidalgo
Posts: 222
Joined: 07 Mar 2021, 07:44

Re: "Scroll to next post" on various social media sites

Post by Jose Hidalgo » 18 Oct 2021, 16:39

... Nobody ?... :eh:

Jose Hidalgo
Posts: 222
Joined: 07 Mar 2021, 07:44

Re: "Scroll to next post" on various social media sites

Post by Jose Hidalgo » 21 Oct 2021, 16:10

OK, I'm bumping this again :?

Jose Hidalgo
Posts: 222
Joined: 07 Mar 2021, 07:44

Re: "Scroll to next post" on various social media sites

Post by Jose Hidalgo » 24 Oct 2021, 06:43

... and again...

Jose Hidalgo
Posts: 222
Joined: 07 Mar 2021, 07:44

Re: "Scroll to next post" on various social media sites

Post by Jose Hidalgo » 25 Oct 2021, 12:35

... and again...

malcev
Posts: 1769
Joined: 12 Aug 2014, 12:37

Re: "Scroll to next post" on various social media sites

Post by malcev » 25 Oct 2021, 17:21

Use TamperMonkey and write script for each site.

Post Reply

Return to “Ask for Help (v1)”