Skip to content
Snippets Groups Projects
Commit 155909aa authored by Zed's avatar Zed
Browse files

Improve infinite scroll selector, fixes threads

parent db100bbf
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment