Redirect outdated links to The Rust Programming Language book to the right URLs

Latest Version

Version
1.0.0
Update
February 4, 2019
Size
184KiB
Developer
Category
Users
19
Rating
5 ★
Manifest Version
2
Web Store Status
Languages Support
English
See more
Permissions
See more

TRPL Redirect Extension

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.
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.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx",\t"name": "TRPL Redirect",\t"short_name": "trpl-redirect",\t"description": "Redirect outdated links to The Rust Programming Language book to the right URLs",\t"manifest_version": 2,\t"version": "1.0.0",\t"author": "Srishan Bhattarai",\t"homepage_url": "https://github.com/srishanbhattarai/trpl-redirect",\t"content_scripts": [{\t\t"matches": ["https://doc.rust-lang.org/book/second-edition/*"],\t\t"js": ["./build.js"],\t\t"run_at": "document_end",\t\t"all_frames": true\t}], "icons": { "128": "rust.png" }}
Read more

Similar Extensions