📜 ⬆️ ⬇️

Browser extension for the site toster.ru

Hello, dear Habrovchane.

Like many here, I often use Toaster and sometimes I miss some features that could facilitate or speed up the process of interaction with this site.
Therefore, it was decided to make an extension for the browser that would fill this gap.

As a result, this project was born - Toster Extension .

What can the extension:
')
  1. Hide the button "Mark a decision" (for other people's questions)
  2. Swap the "Mark a decision" and "Like" buttons
  3. Hide a block with jobs and orders
  4. Hide the block "Similar questions"
  5. Hide the block “The most interesting for 24 hours”
  6. Duplicate pagination above question list in feed
  7. Hide questions with solutions
  8. Use Ctrl + Enter to submit the form.
  9. Save the text entered in the reply / comment form before sending
  10. Show name or nick in question list
  11. Show all tags in the list of questions
  12. Wrap code examples in spoiler
  13. Include monospaced code for questions / answers / comments
  14. Open links from the question page in a new tab
  15. Show link to the user's LAN on Habré
  16. Show a preview of the question when you hover on the title in the tape
  17. Cut code samples from question preview
  18. Show profile preview when hovering on user name
  19. Enable real-time display of new notifications.
  20. Black tag list
  21. Black list of users

Looks like this now my

settings page
image

The extension is currently available only for Google Chrome and Firefox .

The project is written in TypeScript, a settings page using Vue.js.

LocalStorage is used as a temporary storage of questions. Yes, I know, non-kosher and it would be better to use the same IndexedDB, but for now, like this.

Nearest plans:

  1. Display the number of unread notifications on the extension icon
  2. Automatic Update Questions Feed
  3. Question page with automatic updating of responses and comments
  4. Raise the backend in order to store indexed questions, blacklists, various marks (for example, dislikes) and so on.

A little later I will talk about the nuances of using Vue.js in the browser extension, as well as about the differences between Firefox and Chrome in an unexpected place for me.

I look forward to proposals in the Issues and constructive criticism in the comments. Thank you all for taking some time.

Source: https://habr.com/ru/post/445450/


All Articles