32
submitted 3 months ago* (last edited 3 months ago) by meekah@lemmy.world to c/linux@lemmy.ml

I know firefox has the very useful "Copy clean Link" option in the context menu, but I would like a similar feature for copying links from any other software, like spotify for example. So I am looking for some software that hooks into the clipboard pipeline, and cleans any URL that gets added. I tried googling for something like it, but was completely unsuccessful. Does anyone have a clue how I might go about achieving this?

Thanks in advance :)

Edit: I found out about klipper's actions, which provide the option to run a command when a string that matches a regex is added to the clipboard buffer. I am not sure how to properly use this though, so any help is appreciated!

you are viewing a single comment's thread
view the rest of the comments
[-] ivn@jlai.lu 3 points 3 months ago

There is no logic as to which parameters is useful and which is used for tracking. But there are databases.

Here is the one for the CleanURLs extension and here is the one for the AdGuard URL Tracking filter list (which I recommend everyone should enable in uBlock Origin).

[-] meekah@lemmy.world 1 points 3 months ago

Oh, nice! That's definitely valuable info. Personally, I do think it's too much work to implement that properly, though.

[-] ivn@jlai.lu 1 points 3 months ago

There are some examples of projects that use CleanURLs db in its readme but most have not been updated for a long time.

this post was submitted on 14 Mar 2025
32 points (100.0% liked)

Linux

55347 readers
883 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS