You’re searching Google, looking for a link to email/blog/otherwise save. In this example, you’re looking for me, but you’re confused as to how my name is spelled.
Great, let’s grab that first link:
Paste that into your text editor, and you see… oh.
You can, of course, actually visit the link in question, then copy the URL from your address bar. Or you could edit the URL, turning
/ as you go. I’ve done both, thousands of times. So have you. Neither is particularly entertaining.
I searched in vain for a TextExpander snippet to take care of this, but I didn’t turn one up. (OK, I didn’t search that hard; writing one is more fun)
Now, after copying the link, I type
into my editor, and all the tracking cruft is removed, leaving me with:
Getting the Snippet
You’ll need to download and install the Ungoogle TextExpander Snippet, it will be preassigned an
;ungoogle shortcut. Feel free to change the shortcut as you see fit.
One prerequisite: the snippet is actually a Perl script, and you’ll need the URI::Query module installed.
sudo cpan URI::Query will do the trick from the Terminal.
You can also just create a new “Shell Script” snippet of your own, and paste in the Perl:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26