From c0d8f7c421193b54f13ca3611c9fa6ffd1f09b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Mon, 6 Mar 2023 23:52:56 +0300 Subject: Script to clean URLs of trackers --- dotfiles/.local/bin/cleanurl | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 dotfiles/.local/bin/cleanurl (limited to 'dotfiles/.local/bin/cleanurl') diff --git a/dotfiles/.local/bin/cleanurl b/dotfiles/.local/bin/cleanurl new file mode 100755 index 0000000..ba449db --- /dev/null +++ b/dotfiles/.local/bin/cleanurl @@ -0,0 +1,10 @@ +#!/bin/sh + +# Nothing really fancy here, just removes useless tracking GET vars (e.g. amazon +# URLs). +# BEWARE: this script is as dumb as it gets, it might break some URLs that +# actually depend on GET vars (e.g. youtube URLs). + +wl-paste -n | cut -d '?' -f1 | wl-copy -n + +notify-send "✨ URL cleaned" "$(wl-paste)" -- cgit v1.2.3