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

Similar Extensions

User reviews

icon

github workflow (ID: 0000000602237321) Voted 5 ★ - Updated 05/19/2023 Super useful. Thank you Chang Lui!

icon

Nick F (ID: 000000a367c917c7) Voted 5 ★ - Updated 09/10/2021 Thanks for the link to the source code! I found exactly what I was looking for to add to my own extension :)

icon

Hakkı Konu (ID: 0000002bbbf48c00) Voted 1 ★ - Updated 07/11/2019 Not working.

icon

Kelly Huyen (ID: 000000b9a9d646d2) Voted 5 ★ - Updated 03/15/2018 please add an option to make it work without clicking the icon

icon

norio norio (ID: 0000002d31c8762b) Voted 1 ★ - Updated 01/07/2017 not worked