https://github.com/srishanbhattarai/trpl-redirect
Browser extension to correctly redirect links to the outdated "The Rust Programming Language" book, 2nd edition, to the right pages on the latest edition.
https://github.com/srishanbhattarai/trpl-redirect
browser-extension chrome firefox rust trpl
Last synced: 5 months ago
JSON representation
Browser extension to correctly redirect links to the outdated "The Rust Programming Language" book, 2nd edition, to the right pages on the latest edition.
- Host: GitHub
- URL: https://github.com/srishanbhattarai/trpl-redirect
- Owner: srishanbhattarai
- License: mit
- Created: 2019-02-04T14:46:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T15:16:24.000Z (over 3 years ago)
- Last Synced: 2026-01-11T14:04:21.892Z (5 months ago)
- Topics: browser-extension, chrome, firefox, rust, trpl
- Language: TypeScript
- Homepage:
- Size: 1.09 MB
- Stars: 16
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# trpl-redirect · [](https://travis-ci.com/srishanbhattarai/trpl-redirect) [](https://codecov.io/gh/srishanbhattarai/trpl-redirect)
> Browser extension to redirect outdated links to The Rust Programming Language book to the right URLs.

# Background
For a while now, links to the second edition of TRPL have shown a message saying that the link is outdated, and that you should refer to the new edition.
However, there are two problems here:
1. The (new) link that you are asked to open, just goes to the Foreword page each time, regardless of what page you were trying to view on the old book.
_Update: Thanks to [rust-lang/book#1804](https://github.com/rust-lang/book/pull/1804) and [rust-lang/book#1803](https://github.com/rust-lang/book/pull/1803), this is no longer the case. The new links now point to the right page on the new book which partly mollifies the problem. You are welcome to use this extension if you cannot be bothered to perform one extra click every time._
2. Searching for a topic in the book, example Advanced Traits, always yields the outdated URL.
This extension takes the outdated book, and tries to find out what EXACT page in the new book you should actually be on. Then, it redirects you there.
So, for example, if you were on the page for Advanced Traits on the outdated book, you would automatically be redirected to Advanced Traits on the new book.
# Installation
## Chrome
Download from the official Chrome [webstore](https://chrome.google.com/webstore/detail/trpl-redirect/inapnophinbgkgahciiakfmcejejfmpa).
## Firefox
Downloaded from the official Firefox Add-On [marketplace](https://addons.mozilla.org/en-US/firefox/addon/trpl-redirect/).
# Contributions & Issues
Please file an issue if you find that there's a case that is not covered by this extension. Better yet, send in a pull request!
# License
MIT