[oni-browse-url] Add some redirections to scribe and yewtube
This commit is contained in:
parent
055240f3db
commit
13e7e8767f
1 changed files with 16 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||
;; Keywords: local
|
||||
;; Version: 2022.0207.000602
|
||||
;; Version: 2022.0212.230306
|
||||
|
||||
;; 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
|
||||
|
@ -47,12 +47,27 @@ before this filter."
|
|||
((string-prefix-p "https://kevingosse.medium.com" (car args))
|
||||
(cons (string-replace "https://kevingosse.medium.com" "https://scribe.rip/kevingosse" (car args))
|
||||
(cdr args)))
|
||||
((string-prefix-p "https://medium.marqeta.com" (car args))
|
||||
(cons (string-replace "https://medium.marqeta.com" "https://scribe.rip/marqeta" (car args))
|
||||
(cdr args)))
|
||||
((string-prefix-p "https://kevlinhenney.medium.com" (car args))
|
||||
(cons (string-replace "https://kevlinhenney.medium.com" "https://scribe.rip" (car args))
|
||||
(cdr args)))
|
||||
((string-prefix-p "https://upekabee.medium.com" (car args))
|
||||
(cons (string-replace "https://upekabee.medium.com" "https://scribe.rip" (car args))
|
||||
(cdr args)))
|
||||
((string-prefix-p "https://medium.com" (car args))
|
||||
(cons (string-replace "https://medium.com" "https://scribe.rip" (car args))
|
||||
(cdr args)))
|
||||
((string-prefix-p "https://www.youtube.com" (car args))
|
||||
(cons (string-replace "https://www.youtube.com" "https://yewtu.be" (car args))
|
||||
(cdr args)))
|
||||
((string-prefix-p "https://m.youtube.com" (car args))
|
||||
(cons (string-replace "https://m.youtube.com" "https://yewtu.be" (car args))
|
||||
(cdr args)))
|
||||
((string-prefix-p "https://youtu.be" (car args))
|
||||
(cons (string-replace "https://youtu.be/" "https://yewtu.be/watch?v=" (car args))
|
||||
(cdr args)))
|
||||
(t args)))
|
||||
|
||||
(setq browse-url-browser-function
|
||||
|
|
Loading…
Reference in a new issue