News for hackers. Stuff that matters.
Re:RSS Box – RSS for websites that do not support RSS by chrismorgan on Saturday June 20, 2020 @12:59PM (#23584982)
Yes, this is far better than most.

But as a matter of fact, almost all of that functionality could be done without JavaScript! You can make the dropdown work by changing it to use a <details> element (the best approach for both practical and accessibility reasons), or :focus-within, or any number of hacks (I’m partial to the checkbox hack which has served me well for many years, except for minor accessibility concerns), and then replace the <a> elements with appropriate submit buttons that will set the necessary query string parameters.

For example, the button for “exclude retweets” would be:

  <button type=submit name=include_rts value=0>Exclude retweets</button>
The only bit that I can’t think of a good way to handle is when you’re setting more than one query string parameter, like the Twitter “Exclude retweets and replies” button which wants to add `include_rts=0&exclude_replies=1` to the query string. I can think of ways to make it work with two clicks (harming accessibility in the process), but none with only one click. My best hope was putting formaction="?include_rts=0&exclude_replies=1" on the submit button, but a GET form will scrub any query string from its action, so that doesn’t work.

And download links like the Ustream one would use formaction="/ustream/download" on their submit button.

Re:RSS Box – RSS for websites that do not support RSS by stefansundin on Saturday June 20, 2020 @04:06PM (#23586802)
I will look into this. Thanks!