all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* http://yewtu.be
@ 2020-04-24  4:29 Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 0 replies; only message in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2020-04-24  4:29 UTC (permalink / raw)
  To: help-gnu-emacs

Some people don't want to follow plain YouTube
hyperlinks as then "Google gets to know".

Personally, I don't really care what Google knows about
my YouTubing, as long as I don't have to deal with
YouTube's web interface (and this doesn't even require
explicit downloading nowadays, thru mpv(1) which is
a bliss, tho under the hood it uses youtube-dl(1)), but
OTOH I like to post YouTube URLs from Emacs-w3m to ERC
buffers, if you, err, FOLLOW!

So I wrote this so that them paranoid I mean
privacy minded people can also feel good about
it :)

Let's see how long it works before they change
something...

(require 'erc-compat)
(require 'w3m)

(defun ytb ()
  (interactive)
  (let*((url w3m-current-url)
        (ytb (erc-replace-regexp-in-string
             "https://www\\.youtube\\.com/watch\\?v="
             "http://yewtu.be/"
             url) ))
    (kill-new (format "< %s | %s >" url ytb)) ))

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-24  4:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-24  4:29 http://yewtu.be Emanuel Berg via Users list for the GNU Emacs text editor

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.