Browser extension to correctly redirect links to the outdated "The Rust Programming Language" book, 2nd edition, to the right pages on the latest edition.
Branch: master
Clone or download
Latest commit aad164b Feb 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.editorconfig
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
LICENSE
README.md
build.js
jest.config.js
manifest.json
package.json
rust-min.png
screenshot.png
tsconfig.json
tslint.json
webpack.config.js
yarn.lock

README.md

trpl-redirect · Build Status

Browser extension to redirect outdated links to The Rust Programming Language book to the right URLs.

Image of TRPL Redirect

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 and rust-lang/book#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.

  1. 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.

Firefox

Downloaded from the official Firefox Add-On marketplace.

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