MCPcopy Index your code
hub / github.com/antfu/refined-github-notifications

github.com/antfu/refined-github-notifications @v0.6.11

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.6.11 ↗ · + Follow
33 symbols 72 edges 4 files 8 documented · 24%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Userscript: Refined GitHub Notifications

Enhances the GitHub Notifications page, making it more productive and less noisy.

Install on Greasyfork

Introduction

Check Anthony's Talk or the Transcripts to learn more about the philosophy and motivations behind this userscript.

Features

Note: It's pretty opinionated. I'd encourage you to fork and customize it to your own needs.

  • Add target="_blank" to all notifications (and remove notification_referrer_id)
  • Refresh the page when going back to the tab, so you get the latest notifications
  • Remove bot avatars
  • Colorize the notification type (mention, review request, etc.)
  • Auto mark notifications as done (remove it from the list), if:
  • The issue/PR is closed/merged, and you have not participated at all
  • The issue/PR is closed/merged, and you already read it
  • PRs created by Renovate, if not participating
  • New commits pushed to PRs
  • *Notifications you have bookmarked will be bypassed
  • Make sure only one notification tab is opened
  • When going to the issue from the notification, inject a floating button to mark it as done and close the tab.
  • Alt/Option + X to mark a notification as done and close it
  • Preview issue body when hovering over the title

GitHub Token

When using "Detail Preview" feature, GitHub token would be better to provide to avoid rate limit. You can set the token by running the following command in the console of any page on GitHub:

localStorage.setItem('github_token', 'your token')

Sponsors

License

MIT License © 2023 Anthony Fu

Extension points exported contracts — how you extend this code

NotificationItem (Interface)
(no doc)
index.d.ts
DetailsCache (Interface)
(no doc)
index.d.ts

Core symbols most depended-on inside this repo

useOption
called by 7
index.js
clickAndClose
called by 3
index.js
removeCurrent
called by 3
index.js
refresh
called by 3
index.js
isInNotificationPage
called by 3
index.js
run
called by 3
index.js
writeConfig
called by 2
index.js
inject
called by 2
index.js

Shape

Function 31
Interface 2

Languages

TypeScript100%

Modules by API surface

index.js31 symbols
index.d.ts2 symbols

For agents

$ claude mcp add refined-github-notifications \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page