LeetTune is a custom extension that allows you to play different audio files whenever you successfully submit or your problem gets accepted on LeetCode. You can also set up your own custom songs for success and wrong submissions. This guide will walk you through the steps to set up the LeetTune extension on your local machine.
-
Download the ZIP: Visit the LeetTune GitHub repository (LeetTune) and click on the "Download ZIP" button to download the extension's source code as a ZIP file.
-
Unzip the Folder: Extract the contents of the downloaded ZIP file to a convenient location on your computer.
-
Open Chrome Browser: Launch your Google Chrome browser.
-
Access Extensions: In the address bar, enter
chrome://extensions/
, and press Enter. This will take you to the Chrome Extensions page. -
Enable Developer Mode: In the top right corner of the Extensions page, toggle on the "Developer mode" switch. This enables you to load unpacked extensions.
-
Load the Extension: Click on the "Load unpacked" button that appears after enabling Developer mode. A file dialog will open.
-
Select the Unzipped Folder: In the file dialog, navigate to the folder where you extracted the LeetTune extension, and click the "Select Folder" button.
- Prepare Your Audio Files: Place your custom audio files for success and wrong submissions in the
assets/
folder of the LeetTune extension. Make sure to rename the files toaccepted.mp3
for success andwrong.mp3
for wrong submissions.
-
Activate the Extension: Now that the LeetTune extension is loaded, you should see its icon in the Chrome toolbar.
-
LeetCode Submissions: Whenever you submit a solution to LeetCode, LeetTune will automatically detect if your answer is accepted or wrong. It will play the corresponding audio file based on your submission result.
Congratulations! You have successfully set up the LeetTune extension on your local machine. Now, you can enjoy listening to your favorite tunes whenever you conquer a LeetCode problem or get some motivation to try again when your answer is wrong. Happy coding!
Note: This extension is intended for local use only and does not interact with the actual LeetCode platform. It provides audio feedback based on the submission results obtained from the LeetCode website.also this will only work on old leetcode version.