Categories

Developer

Cody

Copy Relative URL v1.0

  • rating
  • rating
  • rating
  • rating
  • rating
0 (0 reviews)
Copy just the relative path of a URL

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