Coder Social home page Coder Social logo

flytaly / reddit-post-notifier Goto Github PK

View Code? Open in Web Editor NEW
17.0 5.0 6.0 4.11 MB

Firefox/Chrome extension that watches for posts in given subreddits or reddit searches

License: Mozilla Public License 2.0

HTML 0.39% CSS 2.41% JavaScript 1.09% Svelte 36.83% TypeScript 59.29%
reddit firefox-extension chrome-extension notifications

reddit-post-notifier's Introduction

Reddit post notifier

Chrome Web Store Chrome Web Store Chrome Web Store

Mozilla Add-on Mozilla Add-on Mozilla Add-on

chrome.google.com/ addons.mozilla.org/

A browser extension that watches and notifies about:

  • new posts in subreddits and Reddit searches,
  • unread private messages in multiple accounts,
  • the latest users' comments and posts.

Video demonstration

Usage for developers

Install dependencies with npm install.

Then, to build and watch changes to the code and style files, and run the corresponding browser using web-ext

npm run dev:ff
npm run dev:chrome

To build the extension in the "extension" folder.

npm run build:ff
npm run build:chrome

To archive the contents of the "extension" folder as a package in the /web-ext-artifacts folder

npm run zip

Authorization

This extension uses OAuth2 authentication to get authorization and refresh tokens. These tokens will be used to check reddit private mail. To generate credentials create new reddit app, and add id of the app in .env file (see .env.example).

External libraries and frameworks

The pop-up and option pages UI are made with Svelte + Tailwind CSS and bundled with esbuild and Vite.

Keyboard shortcuts

Key Function
Alt+Shift+S Open the extension's popup
, j Select the next item
, k Select the previous item
, l, Enter Expand selected posts group; open selected item in the new tab
, h, Backspace Collapse selected posts group
Space Mark selected item as read (remove it)
p Pin selected post; remove already pinned post

License

The code of the extension is licensed under the MPL-2.0.

reddit-post-notifier's People

Contributors

dependabot[bot] avatar flytaly avatar rimutaka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

reddit-post-notifier's Issues

Can't Allow Permissions to your Extension/App

Firefox Version : Nightly 71.0a1 (2019-09-17) (64-bit)
OS : Windows 10 Pro x64

Clicking the "Allow" button simple redirects to the "Unable to Connect" White Blank Screen, hence can't get your extension to work.

Doesn't automatically refresh after laptop wakes up from sleep

Sometimes it does, sometimes it doesn't. You can restart the auto-updates by manually clicking the "Update Now" button but it can be hours before I realize the extension isn't working again. Can something be done so that it consistently starts auto-updating again as soon as computer wakes up from sleep?

Support Edge store

Hi
Since Edge browser usage is quite noticeable thanks to Windows market share and to improve this extension popularity. I think it would be wonderful to support Edge store. What do you think?

Accounts authorization expires after few days

I am using 3 reddit accounts and had saved their login auth in this extension's "Messages and Accounts" section and enabled "watch for messages" toggle. It works for few days. And then it loses the authorization, telling me to reauthorize the accounts. Having to do this for 3 accounts every few days is very irritating. Please look into it.

Reddit

Suggestion: Exclude some authors

I apologise if this was already implemented, but is it possible to filter out certain users who posts often because I'm not interested in their content, so I can tone down the spam in notification?

Is there a way to Export/Import all searches and filters

I have setup lots of filters and followed users. And i want to copy those filters on a different computer.
I cant access my current mail id on new machine.
And setting up everything manually will take a lot of time.
So I wanted to know if there is a way to Export all settings and filters/searches to a file
and restore them back on a new machine.

Im using Google Chrome stable latest version on a windows 10 machine.

Fetch error: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Hi, not sure if this extension is still being supported but on the off-chance that it is, I would like to report this issue.

I first noticed it a few days ago but not sure when it started exactly. I saw a similar thread here that said it's a Reddit issue and that after they waited a day or so, it fixed itself so that's what I did. But that didn't seem to work this time or perhaps I needed to wait a little longer?

Either way, I just thought of reporting it here just in case. Thank you.

Windows 10 64-bit
Firefox 120.0.1
Reddit Post Notifier v. 5.1.1

Subreddits or Search notifications not working

PM notification works fine. But i never received any notification from the subreddit or search feature.

Here is my setting

Subreddits
Watch for new posts in the following subreddits
buildapcsales

I am trying to get firefox notification for every new posts from the subreddit buildapcsales

Search
Watch for specific posts in this subreddit
Name: empty
Subreddit: buildapcsales
Search query: author:redditusername123

I am trying to get firefox notification everytime redditusername123 posts in the subreddit buildapcsales

Can you tell me what i am doing wrong?

Opens up 2 duplicate tabs

When I click the button to "open subreddit or search in new browser tab" it opens 2 identical tabs. Not sure why it just suddenly started happening after an hour or two of installing the add-on. Tried restarting firefox but that did not help.

Adding more kinds of logic in the filters? Something more than "has the words"

With "has the words" as it is right now it requires to have all those words. Maybe you could add other types of logic like "has any of these words", so it fetches posts that has any of those words instead of posts that have all of them.

Notion has this kind of multiple logic behavior for its filters. Like "Contains" or "Does not contains", "Is empty" and "Is not empty".

Feature request: sound notification

Hey man, thank you very much for the addon, I like it very much. Would it be possible to add a sound notification? maybe with a toggle or something, your app is really fast when showing the notifications, but sometimes I'm not looking and I need to hear it in order to open the latest post

thanks in advance!

Display name not respected in notification dialog

I have a display name set for subreddit alerts.

Expected behavior: In the notification dialog for an alert I'd expect the display name to be used there.

Actual behavior: The subreddit name is always used and the display name is seemingly ignored.

Browser: Firefox 109 (Nightly build)
Extension version: 5.1.0

Great extension, by the way! It works wonderfully.

Multi-user support

Right now this extension supports only one user. Will it be possible to support multiple users; so that I can get notified for new messages for all of them?

As in, I'll add multiple users at Mail > authorization section and enable "Unread mail" checkbox for all of them. Whenever any of them receives a new mail, I will get a notification and clicking that notification will open that new msg, switching my user in reddit if necessary.

Can't authorize account on any version of Vivaldi

The auth window opens and disappears in a split second. Having this issue on both the latest Vivaldi Stable (v5.1.2567.49) and Vivaldi Snapshot (v5.2.2581.4). Not sure if the problem is in the browser--or the extension. Works properly on the latest Firefox Beta.

Filters won't work except on exact match

Special characters attached to a string seem to work fine, but numbers to not. One of my settings is to alert me if a post title containing "X" is posted to a certain subreddit, and multiple times since starting to use this extension I've checked the sub myself and noticed something like "25X" or what-have-you in a thread title that I didn't get a notification about. "(X)" or "[X]" work just fine, and I haven't noticed anything like "X25", though posts are also seldom formatted like that so maybe it wouldn't work either.

Link to old reddit

Hello.

Could it be possible to add an option for the notifications to link to the old.reddit version of the site? :)

Sound on new post?

Hi,

Could the extension make a sound when there's a new post? I realize I don't watch the browser's tray often and miss new posts.

Boolean operators search

Thanks for this add-on. For the "Watch for specific posts in the subreddit", is the add-on designed to handle Boolean operators? For example, using the reddit search wiki (https://www.reddit.com/wiki/search), I put the following settings:

Watch for specific posts in the subreddit:
Name: ABC
Subreddit: XYZ
Search query: title: "keyword 1" OR "keyword 2" OR "keyword 3" OR "keyword 4" OR "keyword 5"

The problem is that the search results from the add-on show post titles that are not related to any of the keywords. Am I doing something wrong?

Follow specific thread

Is it possible to have a setup where I can follow for comments on a specific thread?

Kind of like how you can turn on inbox replies for your own posts?

The use case is if I see a thread that I like and wanna be updated on if someone comments.

Thanks

Possible to fetch new chat messages?

Hay!
it's me again with another feature request.

Currently, the extension fetches new messages from other accounts and works without issues.
But it does not fetch messages from the New Reddit chat.

So is there any possibility of adding this feature?

Thanks a bunch,

Not Receiving Notifications Until 2+ Hours Later

I've just received a notification for a post that was over two hours old at the time. That said, it might be an issue on Reddit's side, as I attempted to search for the post on-site and it wasn't even there despite having not been deleted. However, it does seem to just be that specific subreddit out of the ones I'm using this extension for, though there may be others.

Please add a negative match option on Subreddits filter.

Use case - I want to get notified about all new posts from a subreddit, but excluding posts that contain some keywords in their title.
I tried doing this via "Reddit Search" section of the extension.

Subreddit - steam_giveaway
Search Query - title: NOT Madden

Sadly that query doesn't work. Looks like it must have a word to match before I can add exclude words. For example, title:Cyberpunk NOT Madden works, if I wanted to get posts that contain "Cyberpunk" but not madden.

I then tried to use the "Subreddit" section of the extensions settings. I see it has "Filters" option, but all the filters are positive match ("has the word") filters. Whereas I need a negative match - "Doesn't have the word". For example -

Subreddit name - steam_giveaway
post filters - rule 1 - Title : doesn't have the word: Madden

Could this be implemented please?

Notification on Edge Browser

For some reason, since friday I have not seen notifications of some subreddits. I am not talking about the notification sound or anything. Talking about the notifications that appear on the extension panel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.