Copy Current Page URL with Anchor

Firefox extension that allows to right click an element and copy the page URL with the element's ID appended as an anchor. Useful if you want to keep a link to specific section of a webpage.
Premium users can view and search full source code, and see the source code differences between two versions.
Upgrade to premium
manifest.json
{
  "manifest_version": 2,
  "name": "Copy Current Page URL with Anchor",
  "short_name": "Copy Location With Anchor",
  "description": "Copy a link to a specific section of a web page by linking to the section's anchor (URL fragment).",
  "version": "2.0.1",
  "author": "Alexander Belyaev",
  "homepage_url": "https://github.com/certainlyakey/Copy-current-page-URL-with-anchor",
  "background": {
    "scripts": [
      "background.js"
    ]
  },
  "content_scripts": [
    {
      "matches": [
        "<all_urls>"
      ],
      "js": [
        "content.js"
      ]
    }
  ],
  "permissions": [
    "contextMenus",
    "clipboardWrite"
  ],
  "browser_specific_settings": {
    "gecko": {
      "id": "jid1-grAPHQfoBoWMdA@jetpack"
    }
  }
}