aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/lisp/my/my-web.el
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2025-01-20 09:50:11 +1100
committerYuchen Pei <id@ypei.org>2025-01-20 09:50:11 +1100
commitb167fc6a8a97eef6555160be1584a55f7031382c (patch)
tree6fb05d8a793c6ecae8cd4289ebd34a1196bd470e /emacs/.emacs.d/lisp/my/my-web.el
parent5c461f2cc4e8e76d47b98b18e883fe588fa4f11f (diff)
[emacs] Rename mastorg to fediorg
Now that the package handles fedi posts in general, it no longer makes sense to use mastodon-specific naming. Also updated ytdl infobox formatting chapters and removal of extra queries in urls
Diffstat (limited to 'emacs/.emacs.d/lisp/my/my-web.el')
-rw-r--r--emacs/.emacs.d/lisp/my/my-web.el8
1 files changed, 0 insertions, 8 deletions
diff --git a/emacs/.emacs.d/lisp/my/my-web.el b/emacs/.emacs.d/lisp/my/my-web.el
index 6c3cd92..aeb5a6d 100644
--- a/emacs/.emacs.d/lisp/my/my-web.el
+++ b/emacs/.emacs.d/lisp/my/my-web.el
@@ -164,14 +164,6 @@ Useful for bypassing some paywalls."
(require 'hmm)
(defvar my-url-context-function 'hmm-url "Context function for urls.")
-(defun my-mastodon-url-p (url)
- "Guess if a url is a mastodon post.
-e.g. https://hostux.social/@fsf/113709722998924141
-"
- (pcase-let* ((urlobj (url-generic-parse-url url))
- (`(,path . _) (url-path-and-query urlobj)))
- (string-match-p "^/@[^/]+/[0-9]\\{18\\}$" path)))
-
(defun my-hacker-news-url-p (url)
"Check if a url is a hacker news post.
e.g. https://news.ycombinator.com/item?id=42505454"