Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
insin opened this issue Sep 28, 2024 · 5 comments
Open

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

insin opened this issue Sep 28, 2024 · 5 comments
Labels
twitter-change Related to a change Twitter has made

Comments

@insin
Copy link
Owner

insin commented Sep 28, 2024

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 insin added the twitter-change Related to a change Twitter has made label Sep 28, 2024
@arye321
Copy link

arye321 commented Sep 29, 2024

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

@insin
Copy link
Owner Author

insin commented Sep 30, 2024

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

@arye321
Copy link

arye321 commented Sep 30, 2024

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
Copy link

arye321 commented Oct 13, 2024

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

@RoyRiv3r
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
twitter-change Related to a change Twitter has made
Projects
None yet
Development

No branches or pull requests

3 participants