Skip to content

KaanGoker/middleclick-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MiddleClick+ 🖱️

Middle click option for all clickables.

This extension ensures that middle-clicking works on everything: buttons, lists, and modern web apps (SPAs) by forcing them to open in a new tab. It restores the standard browser behavior that many modern sites try to block.

It also adds "Open in New Tab" and "Open in New Window" options to the global right-click context menu.

MiddleClick+

✨ Features

  • Middle Click Everything: Use your middle mouse button on any clickable item (like buttons, list items, or div links) to open them in a new background tab.
  • Context Menu: Right-click anywhere to see "Open in New Tab" and "Open in New Window" options.
  • No Duplicates: Smart logic prevents opening two tabs at once if the website already handles the click correctly.
  • Button Duplication: If you middle-click a button that doesn't go anywhere (like a "New Chat" button), it duplicates your current tab so you don't lose your place.

🛠 Installation

  1. Download the latest version from the Releases page
  2. Unzip the downloaded file to a folder on your computer.
  3. Open Chrome and paste this into the address bar: chrome://extensions/
  4. Toggle Developer mode in the top right corner.
  5. Click Load unpacked.
  6. Select the folder you just unzipped.

📂 Project Structure

  • manifest.json: Configuration file (Manifest V3).
  • content.js: Injected script that handles DOM analysis and click interception.
  • background.js: Service worker that manages tab creation and deduplication logic.
  • assets/: Images and screenshots.
  • icons/: Extension icons.

📄 License

This project is licensed under the MIT License.

About

Middle-click fix for modern web apps. This Chrome extension forces links and buttons to open in a new tab even when the site tries to prevent it.

Topics

Resources

License

Stars

Watchers

Forks

Contributors