ImageFap - Fix endless scrolling

ImageFap - Fix ImageFap endless scrolling to not load same posts multiple times.

ของเมื่อวันที่ 30-12-2021 ดู เวอร์ชันล่าสุด

ผู้เขียน
marp
คะแนน
0 0 0
เวอร์ชัน
1.0
สร้างเมื่อ
30-12-2021
อัปเดตเมื่อ
30-12-2021
Size
3.2 กิโลไบต์
สัญญาอนุญาต
GNU AGPLv3
ปรับใช้กับ

ImageFap - endless scrolling on the Newsfeed page is broken - it often loads the same items multiple time.


The fix is pretty simple - add a "guard condition" to handle the fact that the loading of new items is asynchronous. In this case, simply check if the same timestamp for which new items are to be fetched has been used before, already.


This script neither does nor fixes anything else (for example: ImageFap's endless scrolling feature has additional issues like not honoring the selected categories status, galleries and comments).