| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A Chrome extension for saving and running JavaScript code snippets on web pages via keyboard shortcuts, the toolbar popup, or the right-click context menu. Snippets execute in the page's main JavaScript context using the Chrome DevTools Protocol, bypassing all CSP restrictions.
Personal-use tool. Not published to the Chrome Web Store.
| Action | How |
|---|---|
| Execute a snippet | Alt+Shift+1–9, or left-click extension icon and select, or right-click page context menu |
| Manage snippets | Right-click extension icon → Options |
| Reorder snippets | Drag snippets up/down in the manager sidebar |
| Import snippets | Click Import in the manager toolbar, select a JSON file |
| Export snippets | Click Export in the manager toolbar |
Each snippet requires at least one URL pattern (Chrome match pattern syntax):
*://*/* — all pages *://example.com/* — any protocol on example.com https://*.google.com/* — any Google subdomain over HTTPS
When a snippet executes, Chrome briefly shows a "started debugging this browser" banner. This is a Chrome security requirement for the chrome.debugger API. To suppress it, launch Chrome with:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --silent-debugger-extension-api
trigger-code-snippets/
├── manifest.json # MV3 manifest
├── background.js # Service worker: execution, context menus, messaging
├── content.js # Keyboard shortcut listener (Alt+Shift+1-9)
├── shared/
│ └── storage.js # Storage CRUD, URL matching, import/export
├── popup/
│ ├── popup.html
│ ├── popup.css
│ └── popup.js # Toolbar popup: snippet list, click-to-execute
├── manager/
│ ├── manager.html
│ ├── manager.css
│ └── manager.js # Management page: CRUD, drag reorder, auto-save
├── defaults/
│ └── default-snippets.json # 16 pre-loaded snippets
├── icons/
│ ├── icon16.png
│ ├── icon48.png
│ └── icon128.png
└── docs/
└── SPEC.md # Full specification
Snippets are exported as a JSON array:
[
{
"name": "My Snippet",
"code": "console.log('hello');",
"allowedUrls": ["*://*/*"]
}
]When importing with Append, duplicate names are resolved by appending (2), (3), etc.
Personal use.
| Back | FazBrowse Home | New Git URL |