doc/index.texi | 4 ---- rounds/reddit.go | 35 ----------------------------------- trip.go | 1 - diff --git a/doc/index.texi b/doc/index.texi index b82cdf5741a53c006064a64c3ee4e693c13f5df7c6106cb55a7f7d566bf43e2d..2882e025665e3f531a5de9f77ecb889f1944b0e9eb272dad0fdcaf0be7809c7f 100644 --- a/doc/index.texi +++ b/doc/index.texi @@ -83,10 +83,6 @@ @item Various spying domains (advertisement, tracking counters) are denied. @item -@code{www.reddit.com} is redirected to @code{old.reddit.com} (because it -works without JavaScript and looks nicer). - -@item @url{https://habr.com/ru/all/, Хабр}'s resolution reduced images are redirected to their full size variants. diff --git a/rounds/reddit.go b/rounds/reddit.go deleted file mode 100644 index 8c17e8fde081ca6f4d5384780d5fe6f70832eb5720d0ea995afe10a612d5afc8..0000000000000000000000000000000000000000 --- a/rounds/reddit.go +++ /dev/null @@ -1,35 +0,0 @@ -// tofuproxy -- flexible HTTP/HTTPS proxy, TLS terminator, X.509 TOFU -// manager, WARC/geminispace browser -// Copyright (C) 2021-2026 Sergey Matveev -// -// 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 -// the Free Software Foundation, version 3 of the License. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - -package rounds - -import ( - "net/http" -) - -func RoundRedditOld( - host string, - resp *http.Response, - w http.ResponseWriter, - req *http.Request, -) (bool, error) { - if host == "www.reddit.com" { - req.URL.Host = "old.reddit.com" - http.Redirect(w, req, req.URL.String(), http.StatusMovedPermanently) - return false, nil - } - return true, nil -} diff --git a/trip.go b/trip.go index 0173f4582bb4c6bff459b6daa8ef2287438ac0fec643f13e84a2ea4748ce2e8c..a39f8abd1c8d1982fb63953ebd21b00287eb8568fb0b6c331fa4f53bd9406900 100644 --- a/trip.go +++ b/trip.go @@ -66,7 +66,6 @@ for _, round := range []Round{ rounds.RoundGemini, rounds.RoundWARC, rounds.RoundDenySpy, - rounds.RoundRedditOld, rounds.RoundHabrImage, } { if cont, _ := round(host, nil, w, req); !cont {