1
0
Fork 0

[oni-browse-url] Add redirect for instagram

This commit is contained in:
Tom Willemse 2022-02-23 00:14:12 -08:00
parent d513eb84c4
commit 9a979dac06

View file

@ -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