From 0320b02df2a34866c488bb668de8f0b74f2a1fef Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Wed, 21 Sep 2022 08:18:41 -0700 Subject: [PATCH] stop redirecting to nitter --- .hammerspoon/init.fnl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.hammerspoon/init.fnl b/.hammerspoon/init.fnl index 40626c7..b3b81bc 100644 --- a/.hammerspoon/init.fnl +++ b/.hammerspoon/init.fnl @@ -67,8 +67,6 @@ (url:find "^https://.*[.]bulletin.com/") (open-url :safari) (string.find orig-url "^https://doi.org/") ((open-with :firefox) (.. "https://sci-hub.st/" orig-url)) - (string.find url "^https://twitter.com/") - ((open-with :firefox) (url:gsub :twitter.com :nitter.net 1)) (open-url :firefox)))) (set hs.urlevent.httpCallback @@ -79,6 +77,7 @@ orig-url (de-utm url) redirected (de-utm (redirect orig-url))] (handle redirected orig-url)))) + ; (hs.urlevent.openURLWithBundle orig-url bundle-ids.firefox)))) ;;; Spoons