darkred / Userscripts

My userscripts
165 stars 24 forks source link

(Reddit Infinite Scrolling) Ability to come back to certain scroll #42

Closed benyaminl closed 3 years ago

benyaminl commented 3 years ago

Hello, is there anything possible to make jscroll unlimited scroll reddit works like RES unlimited scroll so we has #id link that can be return back without scrolling again or the API make it not possible at all? Thank you.

darkred commented 3 years ago

works like RES unlimited scroll so we has #id link that can be return back without scrolling again or the API make it not possible at all

Could you please explaining what you mean? I don't quite understand. And could you give an actual example reddit URL?

benyaminl commented 3 years ago

So everytime when we hit the scroll part, RES add anchor URL so when we press back button from browser on keyboard, it will end on the same place like last time.

eg you scoll till page 3 of never ending/infinite scroll, go to some link, and go back, you will end up with first pages not 3 page data shown. I think it will be convenient if we return to the page you were last on when hitting "back" button.

I hope it's clear enough.

darkred commented 3 years ago

Ok, I understand now.

Sorry, unfortunately I can't fulfill this request, as it's far too complicated to replicate that RES functionality, and out of the purpose of this simple script: this was meant merely to provide a configuration for jScroll to use on reddit.

I also use RES and it's perfect, a must-have extension.

benyaminl commented 3 years ago

Alright... Okay... Thank you

darkred commented 3 years ago

I see that you reacted with a laugh emoji to my reply... If you think it's something trivial to replicate the RES functionality, you are free to add it in your own fork, or write a script from scratch.

I wrote that "RES is perfect" in the sense that it's already full-featured, and their devs have done an incredible job, really advanced stuff. I am nowhere near their level of knowledge.

benyaminl commented 3 years ago

I see that you reacted with a laugh emoji to my reply... If you think it's something trivial to replicate the RES functionality, you are free to add it in your own fork, or write a script from scratch.

I wrote that "RES is perfect" in the sense that it's already full-featured, and their devs have done an incredible job, really advanced stuff. I am nowhere near their level of knowledge.

Yeah yeah, I think about to make one, I mean the laugh emoji is kind of real condition that it is complicated, and no simple mater to implement. Yeah RES is full featured but the problem is RES always run on background even when we are not on Reddit, so wasting resources, that's why I scrape many userscript for it. Anyway thanks for replying.

darkred commented 3 years ago

Ok, no problem, misunderstanding then, all cool 😎 If you make a script for it, please keep me posted, it would be informational for me 👍