control-panel-for-twitter icon indicating copy to clipboard operation
control-panel-for-twitter copied to clipboard

"Sort replies by" has moved to a button in the focused Tweet header

Open insin opened this issue 1 year ago • 5 comments

Screenshot 2024-09-28 at 1 53 07 PM

  • There doesn't appear to be a way to check the current sort without clicking the new button
  • This takes a while to load in

insin avatar Sep 28 '24 03:09 insin

is anyone working on it ? i'm considering. it's so annoying doing manually every time

arye321 avatar Sep 29 '24 17:09 arye321

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

firefox_LIs8mucsKY

firefox_wBpDrTwdVM

insin avatar Sep 30 '24 03:09 insin

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

arye321 avatar Sep 30 '24 17:09 arye321

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

arye321 avatar Oct 13 '24 04:10 arye321