A Chrome extension for modifying the href / host / domain of the links on a web page

Latest Version

Version
0.0.4
Update
November 17, 2022
Size
123KiB
Developer
costbell.com
Category
Users
201
Rating
4 ★
Manifest Version
2
Web Store Status
Languages Support
English (United States)
See more
Permissions
ActiveTab
Storage
See more

Modify href Extension

This simple extension does one simple thing: change the href on your current page

A Chrome extension for modifying the href / host / domain of the links on a web page

This small tool will be extremely helpful when you are hitting your own app host directly while links on your web app should rather point to the other hosts or public domain. It will replace the href in the DOM level so there will be no conflict with the javascript events that you might have on your anchor tags.

How to use:
1. Install the Chrome extension

2. Go to the options page of this extension

3. Enter the old href that you want to be replaced (e.g. abc.com, abc.com/xyz)

4. Enter the new href that you want to use (e.g. cba.com, cba.com/zyx)

5. Load your page

6. Click the extension icon!
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "name": "Modify href", "description": "A Chrome extension for modifying the href / host / domain of the links on a web page", "version": "0.0.4", "options_page": "/src/options/options.html", "browser_action": { "default_icon": "/images/off48.png", "default_title": "Click to modify!" }, "permissions": [ "activeTab", "storage" ], "content_security_policy": "script-src 'self' https://ssl.google-analytics.com; object-src 'self'", "background": { "scripts": [ "/src/background.js" ], "persistent": false }, "icons": { "16": "/images/off16.png", "32": "/images/off32.png", "48": "/images/off48.png", "64": "/images/off64.png", "128": "/images/off128.png" }, "author": "Chang Liu"}
Read more