Improve infinite scroll selector, fixes threads
This commit is contained in:
parent
db100bbf17
commit
155909aa9f
|
@ -18,7 +18,7 @@ window.onload = function() {
|
||||||
const url = window.location.pathname;
|
const url = window.location.pathname;
|
||||||
const isTweet = url.indexOf("/status/") !== -1;
|
const isTweet = url.indexOf("/status/") !== -1;
|
||||||
const containerClass = isTweet ? ".replies" : ".timeline";
|
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 html = document.querySelector("html");
|
||||||
var container = document.querySelector(containerClass);
|
var container = document.querySelector(containerClass);
|
||||||
|
|
Loading…
Reference in New Issue