A Chrome extension that lets you save named JavaScript snippets and run them later from reusable action buttons.
- click the + button in the popup
- give the action a name
- paste a JavaScript console snippet
- save it
- click the saved Run button anytime later on a normal website tab
- uses
chrome.userScripts.execute()for user-provided code - tries MAIN world first for better console-style compatibility
- falls back to USER_SCRIPT world when a site CSP blocks page-context execution
- this avoids the
unsafe-eval/new Function(...)error you saw on strict sites
This extension now requires Chrome User Scripts support.
- Chrome 138+: open
chrome://extensions, open this extension's Details, and enable Allow User Scripts - Chrome 135-137: open
chrome://extensionsand enable Developer mode
manifest.json- Chrome extension manifest (MV3)popup.html/popup.css/popup.js- popup UIsrc/- storage, execution, and popup controller logictests/- local automated tests
- Open
chrome://extensions - Enable Developer mode
- Click Load unpacked
- Select this folder:
/Users/oribecher/Projects/chrome-addons/web-scripts-runner - If Chrome shows it, also enable Allow User Scripts in the extension details page
npm install
npm test- minimum supported Chrome version is 135
- saved actions are stored with
chrome.storage.local - scripts run on the current active tab
- Chrome still blocks internal pages like
chrome://and the Chrome Web Store