Copy a page's URL with a hash at the end that identifies the location on the page

Latest Version

Version
2.0.0
Update
January 27, 2018
Size
20.42KiB
Developer
jhartz.github.io
Category
Users
64
Rating
5 ★
Manifest Version
2
Web Store Status
Languages Support
English
See more
Permissions
ActiveTab
ContextMenus
ClipboardWrite
Storage
See more

Copy URL With Hash Extension

Have you ever wanted to send a link to a webpage to someone, but the section of the webpage that you are interested in is further down on the page? Rather than telling the person to scroll down the page until they reach the specific point that you want to show them, just use Copy URL With Hash to send them a link that automatically takes them right to that section!

Copy URL With Hash adds a context menu button when you right-click on an element in a webpage that has a specific ID. Then, if you click the \"Copy Page URL With Hash\" context menu button, it will copy the page's URL with the hash that identifies the location on the page. For more information, including a video example, see the add-on's homepage.

This will not work on every webpage; it all depends on how the author of the page designed it. If the author added many elements with IDs, then this add-on will work well on that page; if the author used absolutely no IDs, then this add-on will not be able to do anything on that page. (To test it, try right-clicking on headings in Wikipedia articles or on the headings on the add-on's homepage.)
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "version": "2.0.0", "applications": { "gecko": { "id": "[email protected]", "strict_min_version": "52.0" } }, "name": "__MSG_extensionName__", "description": "__MSG_extensionDescription__", "default_locale": "en", "homepage_url": "https://jhartz.github.io/copy-url-with-hash/", "permissions": [ "activeTab", "contextMenus", "clipboardWrite", "storage" ], "background": { "scripts": [ "browser-polyfill.min.js", "background.js" ] }, "content_scripts": [ { "matches": ["*://*/*"], "js": [ "browser-polyfill.min.js", "content-utils.js", "OPTIONS.js", "content.js" ] } ], "options_ui": { "page": "options-page.html", "browser_style": true }}
Read more