LiveHosts

Switch your host/IP mappings in real time without editing your hosts file

LiveHosts là gì?

LiveHosts là một tiện ích mở rộng Chrome được phát triển bởi Aioros, và tính năng chính của nó là "Switch your host/IP mappings in real time without editing your hosts file".

Ảnh Chụp Màn Hình của Tiện Ích Mở Rộng

screenshot

Tải xuống tệp CRX của tiện ích mở rộng LiveHosts

Tải xuống các tệp mở rộng LiveHosts dưới định dạng crx, cài đặt các tiện ích mở rộng Chrome bằng tay trong trình duyệt hoặc chia sẻ các tệp crx với bạn bè để dễ dàng cài đặt các tiện ích mở rộng Chrome.

Hướng Dẫn Sử Dụng Tiện Ích Mở Rộng

                        LiveHosts is a Chrome extension that aims at providing a working (even if sub-obtimal) solution to a common nuisance that many web developers have to deal with every day. If you have multiple versions of your websites sharing the same host names on multiple environments, you often need to switch the assignments in your OS hosts file.

Other extensions (like the life-saving HostAdmin) can help with the cumbersomeness, but changes to the hosts file usually take an inconvenient amount of time to actually affect the browser.

Unfortunately, there is no way to make Chrome direct requests for a hostname to a specific IP without a standard redirect - you could set up a smart HTTP proxy, but it's often not possible or not convenient.

This extension settles for a sub-obtimal approach: requests to the indicated hostnames are redirected to the chosen IPs with an additional Host header. The browser's address bar reflects this behaviour showing the hostname right after the IP (e.g. http://127.0.0.1/www.example.com/). The extension also tries to take care of all requests to either the IP or the hostname in a consistent way.

Issues

After the redirect, the user is effectively in a different domain that the one they expected. They may notice some functional differences:

- depending on the server, parts of a web page referring to the site URL (like href and src attributes) could be different from the original
- window.location has a different value that can potentially throw off JavaScript snippets
- most Cross-Origin request won't work                    

Thông Tin Cơ Bản về Tiện Ích Mở Rộng

Tên LiveHosts LiveHosts
ID hdpoplemgeaioijkmoebnnjcilfjnjdi
URL Chính Thức https://chromewebstore.google.com/detail/livehosts/hdpoplemgeaioijkmoebnnjcilfjnjdi
Mô tả Switch your host/IP mappings in real time without editing your hosts file
Kích Thước Tệp 57.78 KB
Số Lần Cài Đặt 12,013
Phiên Bản Hiện Tại 2.0.0
Cập Nhật Lần Cuối 2022-03-29
Ngày Phát Hành 2019-08-05
Đánh Giá 3.43/5 Tổng số 35 Đánh Giá
Nhà Phát Triển Aioros
Email [email protected]
Loại Thanh Toán free
Trang Web Mở Rộng https://github.com/Aioros/livehosts
Ngôn Ngữ Được Hỗ Trợ en
manifest.json
{
    "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
    "manifest_version": 3,
    "name": "LiveHosts",
    "version": "2.0.0",
    "icons": {
        "16": "icons\/livehosts-16.png",
        "48": "icons\/livehosts-48.png",
        "128": "icons\/livehosts-128.png"
    },
    "description": "Switch your host\/IP mappings in real time without editing your hosts file",
    "background": {
        "service_worker": "background.js",
        "type": "module"
    },
    "options_page": "options.html",
    "action": {
        "default_icon": {
            "19": "icons\/livehosts-19.png",
            "38": "icons\/livehosts-38.png"
        },
        "default_popup": "popup\/popup.html"
    },
    "web_accessible_resources": [
        {
            "resources": [
                "\/popup\/*"
            ],
            "matches": [
                "*:\/\/*\/*"
            ]
        }
    ],
    "incognito": "split",
    "permissions": [
        "declarativeNetRequestWithHostAccess",
        "scripting",
        "storage"
    ],
    "host_permissions": [
        "*:\/\/*\/*"
    ]
}