"Copy clean URL" feature
See original GitHub issueWe currently have a privacy feature to strip out identifying parameters across sites. Users are asking us to go further and remove anything that’s not needed when copying URLs.
For example, there are first-party parameters which are not in-scope for the existing query filter:
- Amazon has URLs like
https://www.amazon.com/Echo-Dot/dp/B07FZ8S74R/ref=sr_1_1?crid=1JM4ODN4MKLZO&keywords=alexa+echo&qid=1654644603&sprefix=alexa%2Caps%2C136&sr=8-1
where onlyhttps://www.amazon.com/dp/B07FZ8S74R/
is needed. - Twitter has unnecessary
t
ands
parameters which seem to identify the application and user who shared the link.
There are also parameters which aren’t privacy-harming but which clutter shared links needlessly.
This should be opt-in to avoid surprising users who may be thinking that Brave is broken and unable/unwilling the copy the full URL from the URL bar.
Spec: https://docs.google.com/document/d/1ea7eF3s0WTsTlmMPr8LYp5KUyNg8eK4omjizo27qvJE/edit#
Issue Analytics
- State:
- Created a year ago
- Reactions:10
- Comments:8 (3 by maintainers)
Top Results From Across the Web
What does "Copy clean link" mean?
To use this feature, simply select the Copy clean link option from the context menu when copying a link (image 1), or from...
Read more >Copy Cleaner - Clean URL Links on the Mac App Store - Apple
Paste links with common trackers removed instantly. After copying a URL, automatically remove common trackers when pasting.
Read more >Clean copy URL – Get this Extension for Firefox (en-US)
This extension lets you choose which URL to copy to the clipboard based on the page you are viewing. It helps you remove...
Read more >Improved copy and paste of URLs in Microsoft Edge
Microsoft Edge has an improved way to copy and paste paste web URLs from the address bar into your content. This feature copies...
Read more >How to figure out which junk you can remove from URLs
Just paste in the messy URL, and it'll spit out the clean version. Alternatively, if you'd rather never see code like this in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think this pollutes the context menu unnecessarily. What about having only one “Copy Link” on context that removes trackers by default, while in the settings an option “Allow trackers on copied links” if the user wants or needs it for some reason?
On a side note, totally against editing content from the clipboard, except explicitly enabling that as an option.
@evq also pointed out that we should also debounce URLs that people copy to the clipboard. So if you copy
https://www.google.com/url?q=https://example.com
, for example by copying it from Google Docs or Google Calendar, then it would puthttps://example.com
into the clipboard.So first, aggressively debounce URLs, then strip the query string down to just what’s needed.