Clone of Long-Press-New-Tab extension originally by Kunihiro Ando, based on the firefox extension.
Some time in April 2021, the Long-Press-New-Tab extension in Chrome disappeared, citing a violation in the Chrome Web Store policy. While taking a look at the original chrome-extension code, the ownership of the redirection URLs embedded in JS files have changed, posing a possible privacy/security concern.
This extension is based off of the firefox extension (linked above) and contains no redirection services.
- Download the code. Extract the zipped files to a new folder.
- In Chrome, or a chromium-based browser, go to the Extensions page.
- Toggle 'Developer Mode'. Three new buttons should appear.
- Select 'Load unpacked'.
- Browse to the new folder created earlier and confirm by clicking 'Select Folder'.
- Update to Manifest Version 3
- Chrome may display some errors (attributed to my lack of knowledge on async methods), but core functionality should be same as v4.1
- async methods may be missing error handling (try, catch). I may fix it if it causes major problems, but for now this will have to do.
- Options UI
- Dark background
- Change font
- Increase font size
- Change font color of headers to blue
- Make long-press duration slider update its value in realtime
- Reduce Long-press duration wait time to 200ms
- Reduce max duration from 3000ms to 1000ms
- Add new feature: Open Tab Next To Current
- Multiple new tabs from the same opener tab will be appended
- Reduce Long-press duration wait time to 250ms
- Remove unnecessary options