aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/init/ycp-web.el
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2024-01-20 10:16:49 +1100
committerYuchen Pei <id@ypei.org>2024-01-20 10:16:49 +1100
commit6782e70a83773b84b5dedc534f99e467f0118d20 (patch)
tree8e2e4989861d4c9b3881c192b76bddbf8bf9a4e5 /emacs/.emacs.d/init/ycp-web.el
parent8bf74036d8d0d1699d05dbc335d5155ee5888805 (diff)
[emacs] minor updates to url-rewrite and my-ytdl
- url-rewrite: also redirect from x.com for xitter - luwak: use url-rw for rewrite - ytdl: get rid of silly full-width chars and emojis in file names
Diffstat (limited to 'emacs/.emacs.d/init/ycp-web.el')
-rw-r--r--emacs/.emacs.d/init/ycp-web.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/emacs/.emacs.d/init/ycp-web.el b/emacs/.emacs.d/init/ycp-web.el
index 6f74966..2a56f95 100644
--- a/emacs/.emacs.d/init/ycp-web.el
+++ b/emacs/.emacs.d/init/ycp-web.el
@@ -40,7 +40,7 @@
(:install t)
(require 'luwak-org)
(require 'my-utils)
- (setq luwak-url-rewrite-function 'my-rewrite-url)
+ (setq luwak-url-rewrite-function 'url-rw)
(setq luwak-tor-switch t)
)
@@ -162,9 +162,13 @@
:match "\\<fbclid="
:actions ((remove-query "fbclid")))
(:name twitter-to-nitter
- :description "Twitter to a random nitter instance."
+ :description "Xitter to a random nitter instance."
:match (concat url-rw-www-re (rx "twitter.com"))
:actions ((replace-random-host my-nitter-hosts)))
+ (:name twitter-to-nitter
+ :description "Xitter to a random nitter instance."
+ :match (concat url-rw-www-re (rx "x.com"))
+ :actions ((replace-random-host my-nitter-hosts)))
(:name youtube-to-invidious
:description "YouTube to a random invidious instance."
:match (concat url-rw-www-re (rx (or "youtube.com"