unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).