Reddit Fix

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

От 03.06.2020. Виж последната версия.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey, Greasemonkey или Violentmonkey.

За да инсталирате този скрипт, трябва да инсталирате разширение, като например Tampermonkey .

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Violentmonkey.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Userscripts.

За да инсталирате скрипта, трябва да инсталирате разширение като Tampermonkey.

За да инсталирате този скрипт, трябва да имате инсталиран скриптов мениджър.

(Вече имам скриптов мениджър, искам да го инсталирам!)

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

(Вече имам инсталиран мениджър на стиловете, искам да го инсталирам!)

Автор
Prof_Bum
Рейтинг
0 0 0
Версия
1.3.1
Създаден
01.06.2020
Обновен
03.06.2020
Размер
9 КБ
Лиценз
Няма
Работи на

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