Open insin opened 1 month ago
is anyone working on it ? i'm considering. it's so annoying doing manually every time
If you're not already viewing a thread, the new control doesn't appear until you've scrolled a bit, so this feature can't really work any more
window.scrollTo(0, 1000);
setTimeout(function() {
window.scrollTo(0, 0);
}, 1);
this shows the button
edit: changed 320 to 1000, 320 didnt work on some other page
I know its scuffed but it works,
window.scrollTo(0, 1000);
setTimeout(function() {
window.scrollTo(0, 0);
}, 1);
setTimeout(function() {
document.querySelector('div[aria-label="Home timeline"]').querySelector('button[aria-haspopup="menu"]').click()
}, 100);
setTimeout(function() {
Array.from(document.querySelectorAll('span')).find(span => span.textContent.trim() === "Likes").click()
}, 200);
edit: ok i made a firefox addon, scuffed code but it works i think
https://github.com/arye321/twitter-sort-comments-firefox-addon/releases
Hey there, I've created a sorting addon that can sort smoothly while browsing, the only catch is it relies on the manifest v2 framework, I tried to replicate this with a userscript but there are now some limitations I couldn't do it. The idea is simple, intercept requests before they load on Twitter then replace the "Ranking" of replies. Source code: https://github.com/RoyRiv3r/AutoSortXReplies