| Commit message (Collapse) | Author | Age |
... | |
| | | | |
|
| | |/
| | |
| | | |
closes #233
|
| |\ \
| | | |
| | | | |
Fix link for the Invidious instances list
|
| | |/ |
|
| |\ \
| | |/
| |/| |
Redirect redd.it
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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/////
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | | |
Redirecting tedd.it links to teddit instances works when the link starts
with "/comments". Add "/comments" to the path for teddit.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | | |
redd.it redirects don't work for teddit, so don't do it.
|
| | |
| | |
| | |
| | |
| | | |
Although it doesn't work for teddit, add redd.it to the list of URLs to
redirect.
|
| |\ \
| | |/
| |/| |
Add SimplyTranslate to README
|
| |/ |
|
| |\
| | |
| | | |
Update Russian translation
|
| |/ |
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Redirect reddit images for libreddit instances
|
| |
| |
| |
| |
| | |
No longer redirect image links for teddit instances. Add a comment
detailing the two issues I found. Now, the feature should be stable.
|
| |
| |
| |
| |
| | |
Unbreak old.reddit.com and i.reddit.com by ignoring image redirects for
them.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Teddit image urls are different from libreddit. Handle each separately.
Test manually:
- libredd.it: pass
- libreddit.spike.codes: pass
- libreddit.kavin.rocks: pass
- libreddit.insanity.wtf: fail (site doesn't work in general)
- libreddit.dothq.co: pass
- teddit.net: mostly fail
- teddit.ggc-project.de: mostly fail
- teddit.kavin.rocks: mostly fail
- old.reddit.com: fail
- i.reddit.com: fail
- snew.notabug.io: fail (site doesn't work in general)
Teddit image urls have two issues. First, the links almost never work
(404) if the image url is visited directly before visiting the main
page. Once the main page is visited, however, the image url starts
working. I'm guessing this is an issue with teddit instances not
fetching images unless the main page is accessed. Second, some image
links are different/incompatible for some reason. For example,
<https://i.redd.it/htg3owj12ok21.png> turns into
<https://teddit.net/pics/w:null_TpEyuHnjif6578pV0lBuM-kNW1bXqxbvqbOHjhRZVr0.png>.
Libreddit seems to not have this issue.
|
| |
| |
| |
| |
| | |
"i.redd.it/<imgfile>" redirects "libredd.it/<imgfile>". Make it
redirect to "libredd.it/img/<imgfile>". Tested only for "libredd.it".
|
| |
| |
| |
| |
| |
| | |
Add "i.redd.it" to list of urls to redirect for Reddit. Although the
redirect works, the link should be invalid because it still needs an
"img" path prefix.
|
|\ \
| | |
| | | |
add some instance
|
| |\ \
| |/ /
|/| | |
|
|\ \ \
| | | |
| | | | |
Update Bibliogram instances list
|
| | |/
| |/|
| | |
| | |
| | | |
Set it to match the list of actually working instances.
https://git.sr.ht/~cadence/bibliogram-docs/tree/master/docs/Instances.md
|
|\ \ \
| | | |
| | | | |
Add Ecosia search engine
|
| |/ / |
|
|\ \ \
| | | |
| | | | |
Add Whoogle Search
|
| |\ \ \
| |/ / /
|/| | | |
|
|\ \ \ \
| | | | |
| | | | | |
Add SimplyTranslate support
|
| | | | | |
|
| | |/ /
| |/| | |
|
|\ \ \ \
| | | | |
| | | | | |
add invidious instance
|
| |/ / / |
|
|\ \ \ \
| | | | |
| | | | | |
Add spanish translation
|
| | | | | |
|
| |/ / / |
|
|\ \ \ \
| |/ / /
|/| | | |
Update reddit.js
|
|/ / /
| | |
| | | |
Added instance libreddit.himiko.cloud
|
| | | |
|
| | | |
|
|/ / |
|