Commit Graph

1425 Commits

Author SHA1 Message Date
Elaborendum 11819843f4
Update messages.json 2021-07-26 17:53:03 -05:00
SimonBrazell b31c5bf75a Disable Wikiless redirects by default, add "New" tag (#232). 2021-07-25 14:56:28 +10:00
Simon Brazell 6b26f27f9a
Merge pull request #263 from git-bruh/master
add libreddit instance
2021-07-25 14:34:30 +10:00
Simon Brazell 20aafaaa17
Merge pull request #257 from Kotuklion/master
Add Wikiless support
2021-07-25 14:33:02 +10:00
git-bruh fe98d5a798
add libreddit instance 2021-07-17 12:45:14 +05:30
Simon Brazell a2405b44b4
Merge pull request #259 from unixfox/invidious.fdn.fr
removing invidious.fdn.fr
2021-07-16 23:10:23 +10:00
Simon Brazell a42fe58b1d
Merge pull request #256 from unbranched/patch-3
Italian translation fix
2021-07-16 23:09:45 +10:00
Simon Brazell 049f71fd71
Merge pull request #254 from timharek/master
Add redirect for Norwegian Google Translate
2021-07-16 23:08:03 +10:00
Emilien Devos ee6a96ec0a removing invidious.fdn.fr 2021-07-14 00:36:40 +02:00
Kotuklion 033dad74bc cleanup 2021-07-12 23:08:08 +02:00
Kotuklion 9d92671692 better GET processing 2021-07-12 23:02:56 +02:00
Kotuklion 010d19aff9 check host instead of the whole href for occurence of wikipedia.org 2021-07-12 18:48:52 +02:00
Kotuklion 058ca7b6e0 left some unnecessary spaces here and there 2021-07-12 18:30:54 +02:00
Kotuklion cf7575f33b fix minor typos 2021-07-12 18:24:45 +02:00
Kotuklion 60be141050 add Wikiless support 2021-07-12 18:16:23 +02:00
unbranched 1ef8f02372
Italian translation fix
Title fix
2021-07-11 08:39:59 +00:00
Tim Hårek Andreassen 2f903e056b
Add redirect for Norwegian Google Translate
Signed-off-by: Tim Hårek Andreassen <tim@harek.dev>
2021-07-10 15:34:29 +02:00
SimonBrazell 8a21b62478 Bump version & update dependencies. 2021-07-10 09:47:41 +10:00
SimonBrazell 20a6692e4c Closes #242: remove "new" tag from SimplyTranslate. 2021-07-10 09:44:23 +10:00
Simon Brazell c1b446ced1
Merge pull request #248 from FantasyCookie17/master
Add reddit.artemislena.eu
2021-06-17 22:09:55 +10:00
SimonBrazell 1e1fb22302 Merge branch 'master' of github.com:SimonBrazell/privacy-redirect 2021-06-16 23:32:24 +10:00
SimonBrazell 0bd8507fb8 Fixes #238 2021-06-16 23:31:21 +10:00
Simon Brazell c78ee93ae6
Merge pull request #250 from GaurangTandon/fix-license-link
Fixed license link
2021-06-16 22:58:18 +10:00
Simon Brazell 4f9c130396
Merge pull request #246 from B0pol/autoplay
Only append autoplay parameter if necessary
2021-06-16 22:53:44 +10:00
Simon Brazell ebd09086b6
Merge pull request #243 from unbranched/patch-1
Add Italian translation
2021-06-16 22:52:34 +10:00
Simon Brazell 278714033d
Merge pull request #244 from unbranched/patch-2
Add italian translation
2021-06-16 22:52:21 +10:00
Simon Brazell 2c9be901ee
Merge pull request #234 from austinhuang0131/patch-1
Update various instances
2021-06-16 22:38:14 +10:00
Simon Brazell 292c4bc2ff
Merge pull request #226 from unixfox/patch-1
Fix link for the Invidious instances list
2021-06-16 22:32:12 +10:00
Simon Brazell cda8e74567
Merge pull request #225 from jaki/support-redd.it
Redirect redd.it
2021-06-16 22:31:16 +10:00
SimonBrazell 061dfc0904 Redirect Twitter "video" subdomain & update dev dependencies. 2021-06-16 22:22:53 +10:00
Gaurang Tandon 1cbaa3b4a5
Fixed license link 2021-06-16 17:40:46 +05:30
FantasyCookie17 b8a6ec89c9
Added reddit.artemislena.eu 2021-06-16 01:19:47 +02:00
bopol 8e88786dc2 Only append autoplay parameter if necessary 2021-06-12 19:07:37 +02:00
unbranched 6875ad6dbb
Italian translation 2021-06-06 10:05:16 +00:00
unbranched 7d9ad32ac6
Italian translation 2021-06-06 09:54:49 +00:00
Austin Huang 8a8fe35b6b
update nitter instances (2) 2021-05-11 10:27:07 -04:00
Austin Huang a9e6411ca2
update nitter instances (1) 2021-05-11 10:26:02 -04:00
Austin Huang cfd7c15306
update bibliogram instances
closes #233
2021-05-11 10:23:31 -04:00
Émilien Devos d1f27107a1
Fix link for the Invidious instances list 2021-04-25 14:45:43 +00:00
Simon Brazell 888fb0fad0
Merge pull request #224 from fattalion/add-simplytranslate-to-readme
Add SimplyTranslate to README
2021-04-24 15:57:59 +10:00
Jason Kim 8e11c48850
fix: add comments prefix for /foo/
Links that end in trailing slash but don't have "/comments/" should add
"/comments" prefix but don't because the regex match succeeds.  Fix the
regular expression to be more robust and add prefix for paths like

- /foo/
- /////foo
- /foo/////
- ////foo////

and not add prefix for paths like

- /comments/foo
- /////comments/foo
- /comments/////foo
- ////comments////foo
- ////comments////foo/////
2021-04-22 23:32:31 -07:00
Jason Kim e3df6c4333
fix: add comments prefix if no nested path
The previous fix failed to consider links like
"redd.it/r/.../comments/...".  Those don't really exist in the wild, and
they don't work (when redirects are turned off).  Still, play it safe
and don't add "/comments" prefix unless the path has height 1.

Now, redirects should work for

- redd.it/foo
- redd.it/comments/foo
- redd.it/r/bar/comments/foo

even though the only kind of native link that works is

- redd.it/foo
2021-04-22 23:01:54 -07:00
Jason Kim 21ee6b8542 fix: add "/comments" prefix only if it's missing
Although I have never seen it in the wild, it is possible to navigate to
"redd.it/comments/...".  This should redirect to
"teddit.net/comments/..." in the case of instance teddit.net.  However,
the current code redirects it to "teddit.net/comments/comments/...".
Fix it by avoiding adding the prefix if it's already there.
2021-04-22 23:00:09 -07:00
Jason Kim bb6894cec5 feat: support teddit by adding /comments hint
Redirecting tedd.it links to teddit instances works when the link starts
with "/comments".  Add "/comments" to the path for teddit.
2021-04-22 23:00:08 -07:00
Jason Kim 24bf815516
note: explain why redirect is needed for redd.it
If you try visiting a redd.it site like <https://redd.it/1fwqjw> (first
link that came up when searching "site:redd.it"), you may think that the
redirect works because it goes to your configured instance.  However,
there's a leak: redd.it is a redirect to a www.reddit.com site, and
that's when the redirect to instance happens.  If you observe the
network traffic, you'll see that a GET request goes to redd.it, and
redd.it returns HTTP code 302 and location https://www.reddit.com/...

Let's not do that.  Redirect at redd.it so that requests don't hit
reddit servers.  This does not seem to work for teddit instances, so
don't redirect for them.
2021-04-22 21:12:35 -07:00
Jason Kim 9fc3fccf65 fix: don't redirect redd.it for teddit
redd.it redirects don't work for teddit, so don't do it.
2021-04-22 21:12:16 -07:00
Jason Kim 68a89b1c0c feat: add redd.it to reddit targets
Although it doesn't work for teddit, add redd.it to the list of URLs to
redirect.
2021-04-22 21:00:52 -07:00
fattalion 4ad9fd5971 Add SimplyTranslate to README 2021-04-20 15:17:32 +03:00
Simon Brazell 800aa2b6a5
Merge pull request #222 from TotalCaesar659/patch-1
Update Russian translation
2021-04-18 00:11:50 +10:00
TotalCaesar659 2a247f4772
Update Russian translation 2021-04-16 16:31:25 +03:00