Block Github merge button on specific days

Latest Version

Version
0.1
Update
April 19, 2022
Size
72.83KiB
Developer
Category
Users
40
Rating
5 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
Tabs
Storage
WebNavigation
See more

No Merge Today Extension

A Chrome extension to block the Github merge button on specific days.

This extension declares 3 permissions in its manifest.json:
- tabs: is needed so if multiple tabs are open in Github pull request pages, all tabs can be notified of configuration changes in the action popup (like toggling merge on any day on/off);
- storage: is needed to store the configuration of in which days the merge buttons should be blocked. It is also used to sync this config to your profile (if you login in with your profile in another Chrome instance, it should retrieve the same config);
- webNavigation: is needed to correctly trigger the check for the buttons when doing a client-side navigation, without a full page reload, such as what happens when you are in /pulls inside some repository and clicks on any PR. If, instead, you navigate directly to the PR URL, a full page reload happens, but this permission is still needed for the other cases.

Features:
- DONE: work when navigating directly to a PR link (full page load);
- DONE: work when navigating from anywhere inside Github to the PR link (possibly a client-side render without full reload);
- DONE: work when changing the config on the action popup;
- DONE: work observing changes to the DOM that can be caused by changing the state of a PR;
- DONE: show action icon with different colors (green/gray) according to the configuration for the current day;
- TODO: detect end of current day/begin of new day, set PR button and extension icon accordingly;
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "No Merge Today", "description": "Block Github merge button on specific days", "version": "0.1", "manifest_version": 3, "permissions": [ "tabs", "storage", "webNavigation" ], "action": { "default_popup": "src/popup.html", "default_icon": { "16": "icons/icon16.png", "32": "icons/icon32.png", "48": "icons/icon48.png", "128": "icons/icon128.png" } }, "icons": { "16": "icons/icon16.png", "32": "icons/icon32.png", "48": "icons/icon48.png", "128": "icons/icon128.png" }, "background": { "service_worker": "src/service-worker.js" }, "content_scripts": [ { "run_at": "document_end", "matches": [ "https://github.com/*" ], "js": [ "src/content-script.js" ] } ]}
Read more

Similar Extensions

icon

GroupEM - Tab Grouper for Chrome Extension · Productivity 40 3 ★ 18.23KiB

icon

GitHub Merge Guardian Extension · Developer Tools 40 0 ★ 306KiB

icon

LeetCode Tracker Extension · Developer Tools 40 2 ★ 1.33MiB

icon

Github - Date of creation Extension · Developer Tools 40 15 ★ 477KiB

icon

Simple User Scripts Extension · Productivity 40 0 ★ 94.92KiB

icon

Open in VSCode Extension · Developer Tools 40 4 ★ 60.87KiB

icon

Kamino Extension · Developer Tools 40 10 ★ 608KiB

icon

GitHub Downloader Extension · Developer Tools 40 24 ★ 140KiB

icon

Github to vscode Extension · Developer Tools 40 2 ★ 15.53KiB

icon

Github JSON Editor Extension · Productivity 40 0 ★ 517KiB

icon

Github Open With Extension · Developer Tools 40 1 ★ 11.29KiB

icon

Quick Copy Extension · Productivity 40 1 ★ 147KiB

icon

Github Incident Alerts Extension · Developer Tools 40 4 ★ 869KiB

icon

GitHub Absolute Dates Plugin Extension · Developer Tools 40 2 ★ 48.47KiB

icon

GitHub Whitespace Extension · Developer Tools 40 10 ★ 15.73KiB

icon

Code Note Extension · Developer Tools 40 1 ★ 671KiB

icon

GitHub old dashboard Extension · Developer Tools 40 2 ★ 8.35KiB

icon

GitHub SSO Login Clicker Extension · Productivity 40 1 ★ 15.02KiB

icon

Vs Code github Extension · Developer Tools 40 0 ★ 85.21KiB

icon

Sonic Buttons Extension · Developer Tools 40 4 ★ 19.46KiB

icon

Github Sidebar Extension · Developer Tools 40 2 ★ 562KiB

icon

Linear and github extension Extension · Developer Tools 40 1 ★ 1.67MiB

icon

BP Proxy Switcher Extension · Developer Tools 40 36 ★ 6.73MiB

icon

GitHub Compare Online Extension · Developer Tools 40 0 ★ 383KiB