stop redirecting to nitter

pull/2/head
Alpha Chen 2 years ago
parent 78d43a9bdc
commit 0320b02df2
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

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

Loading…
Cancel
Save