plibither8 / refined-hacker-news

✨ Hacker News, but refined — Interface tweaks and features to make the HN experience better
MIT License
808 stars 34 forks source link

Keep inline editing of comments on same page #27

Open stinos opened 5 years ago

stinos commented 5 years ago

When clicking edit for a comment the inline editing form shows (just like for creating a comment), but after clicking the Update button HN navigates to the comment editing page (https://news.ycombinator.com/edit?id=xxx) instead of staying on the original page. Acoording to the HN thread for this that's a backend issue, it's how Hacker News handles the forms after they have been submitted

plibither8 commented 5 years ago

Thanks for opening this issue.

On further thought, I think this is very much possible. The form should submitted using fetch() which will make an HTTP request in the background. After this, the page can be refreshed.

I'll work on this issue for the next extension update. Cheers!