Well, it seems like it’s going to be a little more tricky. There’s no ID to detect the post sorting selection menu. For the language select, I could look for elements containing the ID language-select
but it does not seem to be possible for post sorting.
The best thing I could think of is to add ?sort=Old
, ?sort=New
to the URL but it does not seem to affect the sorting unless the button is actually clicked or the page fully reloads.
If I could consistently select the elements that allow for filtering (and be careful that it doesn’t conflict with other types of filtering on other pages), I could do it, but right now I don’t see a solution.
The best thing I can think of is to contribute to the Lemmy front-end itself, but since I’m not familiar with the framework they use, and how the project is structured, I don’t think I’ll be able to do it for the forseeqble future. Feel free to open an issue about this on their GitHub however!