Toggle between sites that share URL pieces.
URL Toggle Extension
This Chrome extension lets you store a list of regular expression patterns and replacements so you can quickly switch to a related site when a match is detected.
For example, if you have the following pattern and replacement:
pattern:
\"https://(.+?)\\.github\\.io\\/(.+?)\\/.*\"
replacement:
\"https://github.com/$1/$2/\"
Then when you are on a hosted Github Pages site, this icon will become enabled and let you navigate to the corresponding GitHub repository with one click. You can add as many patterns and replacements as you like.
Read more
For example, if you have the following pattern and replacement:
pattern:
\"https://(.+?)\\.github\\.io\\/(.+?)\\/.*\"
replacement:
\"https://github.com/$1/$2/\"
Then when you are on a hosted Github Pages site, this icon will become enabled and let you navigate to the corresponding GitHub repository with one click. You can add as many patterns and replacements as you like.
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "name": "URL Toggle", "version": "1.3", "description": "Toggle between sites that share URL pieces.", "background": { "scripts": [ "background.js" ], "persistent": false }, "options_page": "index.html", "page_action": { "default_title": "Toggle!" }, "permissions": [ "activeTab", "declarativeContent", "storage" ], "icons": { "16": "swap-16.png", "48": "swap-48.png", "128": "swap-128.png" }, "manifest_version": 2}
Read more