trin's avatar
Level 5

Laracasts Discuss Push Notification 0.35 (chrome & firefox extension)

as I told earlier, i wrote small chrome extension, to add feature "follow by push" on threads. this extensions approve in google web store and now it exist to install all clients. also, i modified code and publish extension as firefox addon too. it seemed simple. not really ) @sr57, only for u bro ) and for experience, of couse.

i moved to webpack5 and refactored options page with vue (not preact, as early). if u use chrome or firefox, only u need to install:

chrome: https://chrome.google.com/webstore/detail/laracasts-discuss-push-no/fggkellghninlgbggeioklhlflfmjkfg

firefox: https://addons.mozilla.org/ru/firefox/addon/laracasts-discuss-push-notify/

play with sources:

https://github.com/trin4ik/laracasts-discuss-push-notify

finnaly extension for firefox and chrome has small different, but has. so if u want play with sources, u need build for firefox and chrome separate

git clone https://github.com/trin4ik/laracasts-discuss-push-notify 
cd laracasts-discuss-push-notify 
yarn
yarn chrome # or yarn firefox

and for all, who want write self extension, i recommended write first to firefox, after modify for chrome. chrome has more flexible api, firefox has more stronger.

extension consists of three parts:

  • background script. wait for subscribe, check new answers, 'talk' with other parts
  • content script. inject in laracasts.com, observe and modify dom, handle event
  • options page. vue component for enabled/disabled extension, list of subscribes etc

__

version 0.35

  • added scanner thread categories

now u can "subscribe" not only thread update, but on new threads in categories

version 0.34

  • bugfix
  • moved options page to spectre.css
  • separated options and subscribed threads on options page
  • added more options, like "refresh interval" and "autotrash days"
  • added badge to extension icon

version 0.33

  • bugfix
  • add notification sound
0 likes
4 replies
trin's avatar
Level 5

we talks about this extension in my prev post, but thanks you )

1 like
trin's avatar
Level 5

big update guys, added scanner for new topics. in experimental mode. one time in 60 secs scanning /discuss for new topics and push notification to u, if u subscribe on category.

1 like

Please or to participate in this conversation.