Commit Graph

25 Commits

Author SHA1 Message Date
Nils 4d86433e0f
fix gallery redirect, closes #72 2023-01-03 15:09:14 +01:00
Tom Watson 7e41360e60 add unique redirect for gallery links
Closes https://github.com/tom-james-watson/old-reddit-redirect/issues/60

A gallery link in the form https://www.reddit.com/gallery/qnjjvh can be
redirected to
https://old.reddit.com/r/OnePiece/comments/qnjjvh/marines_as_shinigami_by_norridzuan_art.
We only have the id to work with, but reddit will actually redirect
https://old.reddit.com/qnjjvh to the full url, so we can just redirect
to that instead.
2021-11-07 10:07:53 +01:00
Ben Nelson 7b974bd31a
Exclude '/community-points' path
Exclude this path because it 404s in old reddit.
2021-07-09 22:31:46 -05:00
Tom Watson 621c2b05ee also redirect i.reddit.com
Closes https://github.com/tom-james-watson/old-reddit-redirect/issues/45
2021-01-24 12:08:27 +01:00
Tom Watson 9cacda42f3 don't redirect new.reddit.com
This provides a useful workaround for viewing the new site if there is
something broken on old.reddit.com (e.g. polls), as well as giving a way
to just check something on the new site if you want to.

Closes https://github.com/tom-james-watson/old-reddit-redirect/issues/44
Closes https://github.com/tom-james-watson/old-reddit-redirect/pull/28
Closes https://github.com/tom-james-watson/old-reddit-redirect/pull/27/files
Closes https://github.com/tom-james-watson/old-reddit-redirect/issues/12
2021-01-23 14:42:29 +01:00
Tom Watson 97dfde8fa3 prettier fixes 2021-01-23 14:40:00 +01:00
Tom Watson ea26a03353
Merge pull request #34 from Lachcim/galleries
Collective fix for new Reddit features as of July 2020
2020-07-19 15:09:27 +02:00
Michał Szopiński f481bcdbfb Refactor URL parsing, fix equalities 2020-07-18 22:01:26 +02:00
Michał Szopiński 629926126e Remove unnecessary exceptions 2020-07-17 15:19:05 +02:00
Michał Szopiński 2c28b50960 Preserve query string and hash 2020-07-16 18:56:23 +02:00
Michał Szopiński 01a3d69adc Fix indent 2020-07-16 15:01:19 +02:00
Michał Szopiński 790ff84ec9 Make parser const 2020-07-16 14:45:13 +02:00
Michał Szopiński 9dc68e9029 Add more exceptions 2020-07-16 13:52:58 +02:00
Michał Szopiński 90181d4125 Add exception system 2020-07-16 13:31:36 +02:00
Michał Szopiński 9f06826bed Replace regex with URL parser 2020-07-16 13:15:38 +02:00
Vincente Campisi 71446f4b60 Add amp.reddit.com as redirected url and manifest permission 2020-05-19 19:29:04 +02:00
Tom Watson e400b88e4b remove pay.reddit.com as a redirected url
This seems to have tripped some check google has as they are sending me
emails telling me I need to add a privacy policy as my extension deals
with sensitive user data such as payment details. Apparently the
extension will be taken down if this is not dealt with.

I'm hoping simply removing this line will be enough.
2019-01-10 12:57:54 +01:00
Terry Agapitos 8a2c656379 Escaped period in www. - also used prettier to format document and fix minor issues (eg missing semi-colons) 2019-01-09 16:29:22 +11:00
Tom Watson 3824a95058 linting fixes 2018-12-06 15:58:41 +01:00
Zamicol fb325a7ae4 add support for poll pages 2018-11-19 23:59:07 -07:00
Tom Watson 11c3c4b114 fix redirect for pay.reddit.com 2018-06-12 11:21:54 +02:00
James Shubin 146a773f60 add redirect for pay.reddit.com as well
This is another prefix that is commonly used across reddit.
2018-06-12 03:28:53 -04:00
Tom Watson d504ef268c also redirect for new.reddit.com links 2018-05-03 15:10:45 +02:00
Tom Watson c2f3aa7b7d use https for redirect 2018-04-25 17:07:44 +02:00
Tom Watson 93e78faa98 initial commit 2018-04-25 16:43:21 +02:00