yuBar is a lightweight Chrome browser extension, an alternative to Hackerbar, that makes it easy to modify HTTP request parameters in the browser. It is particularly useful for web developers and security testers.
- Real-time Request Capture - Automatically capture HTTP request information from the current page
- Request Header Modification - Modify any HTTP request headers, including commonly used User-Agent
- Preset User-Agents - Built-in User-Agent strings for multiple popular browsers:
- Chrome (Windows)
- Firefox (Windows)
- Safari (macOS)
- Chrome (Android)
- Safari (iOS)
- Edge (Windows)
- Response Header Viewing - View server response headers
- Custom Requests - Support for GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS methods
- Smart Request Handling - GET requests open in new tab; other methods display response in popup
中文: 查看中文版 README
yuBar/
├── src/ # React source code
│ ├── App.tsx # React main component
│ ├── main.tsx # React entry point
│ └── index.css # Global styles
├── icons/ # Extension icons
│ ├── icon16.png
│ ├── icon48.png
│ └── icon128.png
├── background.js # Extension background script
├── popup.js # Popup window logic
├── popup.html # Popup window UI
├── styles.css # Popup window styles
├── manifest.json # Extension manifest
├── package.json # Project dependencies
├── vite.config.ts # Vite build config
├── tailwind.config.js # Tailwind CSS config
├── tsconfig.json # TypeScript config
└── eslint.config.js # ESLint config
- Frontend Framework: React 18 + TypeScript
- Build Tool: Vite
- Styling: Tailwind CSS
- Icons: Lucide React
- Code Quality: ESLint + TypeScript
-
Clone the project:
git clone https://github.com/CuteCuteYu/yuBar
-
Navigate to the project directory:
cd yuBar -
Install dependencies:
npm install
-
Build the project:
npm run build
-
Install in Chrome:
- Open Chrome browser
- Go to
chrome://extensions/ - Enable "Developer mode" in the top right
- Click "Load unpacked"
- Select the
distfolder in the project directory
- Open Chrome browser
- Go to
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked"
- Select the yuBar project root directory
- Open Extension: Click the yuBar icon in the Chrome toolbar to open the popup
- Capture Request: Click the "Capture Current" button to automatically fetch HTTP request info from the active tab
- Modify Headers:
- In the Headers section, you can add, edit, or delete request headers
- When selecting "User-Agent" as the header name, a preset browser selection dropdown will appear
- You can also select "Custom User-Agent" to enter a custom User-Agent string
- Select HTTP Method: Choose from GET, POST, PUT, PATCH, DELETE, HEAD, or OPTIONS
- Request Body: Enter request body content for POST, PUT, or PATCH requests
- Send Request:
- For GET requests: Opens the URL in a new tab with modified headers
- For other methods: Displays response status, headers, and body directly in the popup
- Clear Form: Click "Clear" to reset all inputs
This extension requests the following permissions:
activeTab- Access current active tabscripting- Execute scriptsstorage- Store datadeclarativeNetRequest- Modify network requeststabs- Manage tabswebRequest- Intercept network requests<all_urls>- Access all websites (for capturing and modifying requests from any site)
# Start development server
npm run dev
# Build for production
npm run build
# Lint code
npm run lint
# Preview build
npm run preview- The extension uses the
declarativeNetRequestAPI to modify request headers, which is the officially recommended approach - Modified header rules are automatically applied when sending requests
- The extension automatically cleans up cached data for closed tabs
MIT License