Improve infinite scroll selector, fixes threads
This commit is contained in:
parent
db100bbf17
commit
155909aa9f
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue