diff options
author | Tom Willemse | 2022-02-23 00:14:12 -0800 |
---|---|---|
committer | Tom Willemse | 2022-02-23 00:14:12 -0800 |
commit | 9a979dac067d1a3306b8c92ecfdab11ce5a8c47a (patch) | |
tree | 1e3bd5344224175d7741ee95b922d3db6c1e0e97 /oni-browse-url.el | |
parent | d513eb84c4994d58cfa04d2ca16e95611b2c544c (diff) | |
download | emacs-config-9a979dac067d1a3306b8c92ecfdab11ce5a8c47a.tar.gz emacs-config-9a979dac067d1a3306b8c92ecfdab11ce5a8c47a.zip |
[oni-browse-url] Add redirect for instagram
Diffstat (limited to 'oni-browse-url.el')
-rw-r--r-- | oni-browse-url.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/oni-browse-url.el b/oni-browse-url.el index 1c32d48..eb01b2c 100644 --- a/oni-browse-url.el +++ b/oni-browse-url.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse <tom@ryuslash.org> ;; Keywords: local -;; Version: 2022.0212.230306 +;; Version: 2022.0220.005733 ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -68,6 +68,9 @@ before this filter." ((string-prefix-p "https://youtu.be" (car args)) (cons (string-replace "https://youtu.be/" "https://yewtu.be/watch?v=" (car args)) (cdr args))) + ((string-prefix-p "https://www.instagram.com" (car args)) + (cons (string-replace "https://www.instagram.com" "https://bibliogram.1d4.us/u" (car args)) + (cdr args))) (t args))) (setq browse-url-browser-function |