This browser extension automatically redirects LeetCode problem pages to the classic UI by adding /classic/ to the URL path. It intelligently avoids redirecting pages that would result in 404 errors.
- Automatically redirects problem pages to the classic UI
- Checks if the classic page exists before redirecting to prevent 404 errors
- Allows disabling/enabling the extension via popup
- Works only on LeetCode domains for security
- Compatible with both Chrome and Firefox
- Open Chrome and navigate to
chrome://extensions - Enable "Developer mode" (toggle in top-right corner)
- Click "Load unpacked" and select the
leetcode-classic-viewfolder - The extension will appear in your extensions list
- Open Firefox and navigate to
about:debugging - Click "This Firefox" on the left sidebar
- Click "Load Temporary Add-on"
- Select the
manifest.jsonfile from theleetcode-classic-viewfolder
The extension monitors navigation to LeetCode pages and automatically adds /classic/ to the URL path for eligible pages. It performs a HEAD request to check if the classic version exists before redirecting, preventing 404 errors.
Only problem pages (e.g., /problems/two-sum/) are redirected. Main pages like the homepage, contest pages, discuss forums, etc. are not affected.
- Problem pages (e.g.,
https://leetcode.com/problems/two-sum/) - Solution articles (where available)
- Homepage (
/) - Problems list (
/problems/) - Problemset (
/problemset/) - Contests (
/contest/) - Discuss forum (
/discuss/) - Explore section (
/explore/) - Interview prep (
/interview/) - Premium pages (
/premium/) - And other non-problem pages
Click the extension icon to open a popup that allows you to enable/disable the extension temporarily.
MIT