How to stop websites from opening new tabs chrome

There are a few ways to prevent websites from opening new tabs in Google Chrome:

Method 1: Disable the "Open link in new tab" option

  1. Click on the three vertical dots in the top right corner of the Chrome browser window.
  2. Click on "Settings" from the drop-down menu.
  3. Scroll down to the "Advanced" section.
  4. Click on "System" from the left-hand menu.
  5. Toggle off the switch next to "Open link in new tab" under the "System" section.

Method 2: Use a Chrome extension

There are several Chrome extensions available that can help you prevent websites from opening new tabs. Here are a few options:

  1. No New Tabs: This extension prevents websites from opening new tabs and instead opens links in the current tab.
  2. Tab Manager: This extension allows you to manage your tabs and prevent new tabs from opening.
  3. Link Manager: This extension allows you to customize how links are opened in Chrome, including preventing new tabs from opening.

To install a Chrome extension:

  1. Click on the Chrome web store icon in the top right corner of the browser window.
  2. Search for the extension you want to install.
  3. Click on the "Add to Chrome" button.
  4. Click on the "Add extension" button in the pop-up window.

Method 3: Use a Chrome flag

Chrome has a flag that can be enabled to prevent websites from opening new tabs. Here's how to do it:

  1. Type chrome://flags in the address bar and press Enter.
  2. Search for "Open link in new tab" in the search bar.
  3. Click on the "Open link in new tab" flag and toggle the switch to "Disabled".
  4. Restart Chrome for the changes to take effect.

Method 4: Use a user script

You can also use a user script to prevent websites from opening new tabs. Here's an example of a user script you can use:

  1. Create a new file called newtab_blocker.user.js in your Chrome profile directory (usually C:\Users\<YourUsername>\AppData\Local\Google\Chrome\User Data\Default\Extensions).
  2. Add the following code to the file:
    
    function blockNewTabs() {
    chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {
     if (changeInfo.status === 'complete' && tab.url!== '') {
       chrome.tabs.update(tabId, { active: true });
     }
    });
    }

blockNewTabs();


3. Reload Chrome or restart your computer for the changes to take effect.

Note: The above methods may not work for all websites, and some websites may still be able to open new tabs despite these methods.