Reddit Fix

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

目前為 2020-06-03 提交的版本,檢視 最新版本

作者
Prof_Bum
評價
0 0 0
版本
1.2.1.2
建立日期
2020-06-01
更新日期
2020-06-03
尺寸
8.3 KB
授權條款
未知
腳本執行於

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

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址