From 9a979dac067d1a3306b8c92ecfdab11ce5a8c47a Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 23 Feb 2022 00:14:12 -0800 Subject: [PATCH] [oni-browse-url] Add redirect for instagram --- oni-browse-url.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ;; 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