Reddit Fix

Fix attempt of the infinite scroll, removes background effects on comments

La data de 03-06-2020. Vezi ultima versiune.

Autor
Prof_Bum
Rating-uri
0 0 0
Versiune
1.3.1
Creat
01-06-2020
Actualizat
03-06-2020
Size
8,94 KB
Licență
N/A
Se aplică pe

This is my attempt at fixing the infinite scroll issue you get if you scroll too far. Reddit tends to lag and slow down.
This is caused because the number of elements is kept in the html page making the dom bigger and bigger the further you scroll.
What i'll do is after you reached a certain depth i'll remove the topics you scrolled over this way no matter how far you scroll you won't experience lags (only server load time).

You can choose to keep the original behavior of reddit in the menu.

https://i.gyazo.com/9452b62cab952bf0934be188540e5ab1.png

You have 3 options there:

Comment Effects: This will remove the annoying effects people get when a comment is upvoted or gets rewards. The rewards will stay but the background effects will be removed. It uses attribute selector so not the fastest but it does the job.
If you enable/disable this you need to reload, because that's a css rule that needs to be applied/removed.


Save Topic in ram: Because of how i'm fixing the infinite scroll the topics i remove are no more in the html. So i'm leaving this option so you can decide to either save these topics and restore them when you want OR do not save these and minimize the impact your ram.

If you decide to save the removed topics to ram you will have these options: https://i.gyazo.com/05b18c8de66bbbfe433917806af5d519.png

Saving in ram will not impact scroll but it can cause issues when restoring the dom.

ATTENTION: If you decide to reload all you can make your chrome slow down terribly if you have scrolled very far. This can take a lot of time to restore. And you can experience issues when scrolling back down (once the bottom is reached i'll start removing the top again).

Original behavior: This will not remove topics when you scroll and let you use reddit like before, meaning the topics will always remain in the dom.


You can contact me on reddit if you have issues: https://www.reddit.com/user/FeelsPogChampMan

IF THE MENU DOESN'T APPEAR: Just click again, reddit is so well made that basicly i need to create the menu everytime you click on your name because that's how they decide to do it for some reason :D