A Chrome extension for developers with multiple tools to enhance your development workflow.
Replace URLs on web pages to test with different environments:
- Swap source URLs with destination URLs
- Support for images, CSS, JS, media files, iframes, and inline CSS
- Optional menu link swapping with CSS selectors
- Origin-only matching mode (matches only scheme + host, ignoring paths)
- Real-time processing of dynamically added content
Force reload of CSS/JS files without server changes:
- Add
?ver=timestampquery parameters to CSS and/or JS files - Individual controls for CSS vs JS files
- File-specific filtering using patterns (e.g.,
style.css,main*.css,components/*.css) - Disable browser cache for selected domains via fetch/XMLHttpRequest override
- Target specific domains or apply globally
- Works with dynamically loaded content and preload links
- Processes both regular links and preload resources
WordPress and generic debugging tools for developers:
- Quick Debug Panel: Floating overlay with one-click debug parameter toggles
- Auto-highlight: Automatically detects and highlights debug parameters in URLs
- WordPress Integration: Auto-detects WordPress sites and provides REST API access
- Custom Parameters: Add your own debug parameters for quick access
- Keyboard Shortcuts: Ctrl+Shift+D to toggle debug panel
- Parameter Management: View, add, and remove debug parameters from current URL
- REST API Button: One-click access to WordPress REST API endpoints
Supported Debug Parameters:
- Essential:
nocache=1,debug=1(built-in quick buttons) - WordPress Builders:
elementor-preview,fl_builder,et_fb,vc_editable,gutenberg - WordPress Core:
wp_customize,preview,preview_id,preview_nonce - Custom parameters: Fully configurable via settings
- Clone or download this repository
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" and select the DevStack folder
- The extension icon will appear in your toolbar
Click the Dev Stack icon to open the popup with three tabs:
- Toggle "Enabled" to activate URL swapping
- Enter your source URL (e.g.,
http://localhost:3000) - Enter your destination URL (e.g.,
https://example.com) - Toggle "Match by origin only" if you want to match only scheme + host (ignoring paths)
- Choose which types of assets to swap (images, CSS, JS, media, iframes, inline CSS)
- Optionally add CSS selectors for menu links (comma-separated)
- Click "Save"
- Toggle "Enabled" to activate cache busting
- Enable "Add ?ver=timestamp to CSS files" and/or "Add ?ver=timestamp to JS files"
- Optionally specify file patterns for CSS/JS files (one per line, supports wildcards like
*.cssormain*.js) - Enable "Disable browser cache for selected domains" to prevent all caching via request headers
- Enter target domains (one per line) or leave empty for all domains
- Click "Save"
- Toggle "Enabled" to activate debug helpers
- Configure debug panel options (auto-highlight, REST API button)
- Add parameters to highlight when detected in URLs
- Add custom parameters for quick access buttons
- Use keyboard shortcuts: Ctrl+Shift+D to toggle debug panel
- Click "Save"
Debug Panel Features:
- Appears as floating overlay on web pages
- Quick action buttons for common debug parameters
- Real-time URL parameter detection and highlighting
- One-click parameter addition/removal
- WordPress REST API access (auto-detected)
- Custom parameter support
The extension consists of:
popup.html- Main UI with tabbed interfacepopup.js- Tab management and settings persistencecontent.js- URL Swapper functionality with mutation observercache-buster.js- Cache busting functionality with file filteringdebug-helpers.js- WordPress and generic debugging toolsstyle.scss- Compiled styles for the popup interfacechrome-mock.js- Chrome API mock for developmentmanifest.json- Extension configuration
For local development without loading the extension, include the Chrome API mock:
<script src="chrome-mock.js"></script>This provides mock implementations of Chrome extension APIs for testing the popup interface.
MIT


