Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
    • Other Browser Sites
    • Add-ons for Android
Log in
Preview of Copy Relative URL

Copy Relative URL by Cody

Copy just the relative path of a URL

5 (1 review)5 (1 review)
8 Users8 Users
Download Firefox and get the extension
Download file

Extension Metadata

About this extension
This very simple extension adds a "Copy Relative URL" item to the context menu when you right click a link. So, for instance, if you right click a link and the URL is https://dev.example.com/some-path/?q=1#hash, it will copy /some-path/?q=1#hash to your clipboard so you can paste that nice, clean relative link in your code.

A niche use case! But I'm a web developer and I have to do that a lot more than most so I wrote an extension to make it faster.

Source code is available here: https://github.com/cody1213/copy-relative-url
Rated 5 by 1 reviewer
Log in to rate this extension
There are no ratings yet

Star rating saved

5
1
4
0
3
0
2
0
1
0
Read 1 review
Permissions and data

Required permissions:

  • Input data to the clipboard
Learn more
More information
Add-on Links
  • Homepage
  • Support site
  • Copy add-on ID
Version
1.0
Size
11.1 KB
Last updated
4 years ago (Aug 2, 2022)
Related Categories
  • Web Development
License
MIT License
Version History
  • See all versions
Add to collection
Report this add-on
Go to Mozilla's homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Download

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

Latest Builds

  • Nightly
  • Beta

Firefox for Business

  • Enterprise

Community

  • Connect
  • Contribute
  • Developer

Follow

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version.