The URL Cleaner project includes two main components:
- CLI Tool (Python) - A command-line interface tool to clean and sanitize URLs.
- Browser Extension (JavaScript) - A browser extension that automatically cleans URLs while browsing.
These tools are designed to remove unnecessary query parameters and tracking information from URLs to improve privacy and simplify URL sharing.
- Privacy-Focused: Removes tracking parameters from URLs.
- Multi-Platform: Available as a CLI tool and a browser extension.
- Customizable: Ability to specify which parameters to remove.
-
Clone the repository:
git clone https://github.com/username/url-cleaner.git cd url-cleaner
-
Install dependencies:
pip install -r requirements.txt
The CLI tool allows you to clean URLs directly from the command line.
python url-cleaner-python.py <url>
python url-cleaner-python.py "https://example.com?utm_source=google&utm_medium=cpc"
Output:
https://example.com
- Python 3.x
- Required Library: pyperclip (automatically installed via
requirements.txt
)
The browser extension automatically cleans URLs as you navigate the web.
- Open your web browser (Chrome or any Chromium-based browser).
- Go to
chrome://extensions/
. - Enable Developer mode.
- Click Load unpacked and select the folder containing the extension files.
- The extension automatically cleans URLs in the background.
- No user interaction is required.
- Open the extension's background script or configuration file to add or remove URL parameters to be filtered.
- Run Tests:
python url-cleaner-python.py "https://example.com?test=true"
- Add Custom Cleaning Rules:
- Update the
url-cleaner-python.py
file to customize which parameters to remove.
- Update the
- Load Extension:
- Follow the installation steps in Browser Extension.
- Modify Code:
- Make changes to
url-cleaner.js
orextension-files.js
as needed.
- Make changes to
- Fork the repository.
- Create a new branch (
git checkout -b feature-name
). - Make your changes and commit them (
git commit -m 'Add new feature'
). - Push your branch (
git push origin feature-name
). - Create a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions or suggestions, feel free to create an issue on the GitHub repository.