Improve infinite scroll selector, fixes threads

This commit is contained in:
Zed 2020-06-19 14:36:47 +02:00
parent db100bbf17
commit 155909aa9f
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ window.onload = function() {
const url = window.location.pathname;
const isTweet = url.indexOf("/status/") !== -1;
const containerClass = isTweet ? ".replies" : ".timeline";
const itemClass = isTweet ? ".thread-line" : ".timeline-item";
const itemClass = containerClass + ' > div:not(.top-ref)';
var html = document.querySelector("html");
var container = document.querySelector(containerClass);