I'm on Linux Mint with Chrome version 117.0.5938.62 and with it I seem to have lost new links opening in a new tabs. All links open in the same tab and I can't find the option to change that back.
It's got to be there somewhere. Any hints appreciated.
Videos
Clicking on the links and selecting "Open in New Window" is slowing me down. Its a repetitive task and the seconds are adding up.
I looked for a solution but could not find one.
I have tried to do this in the past and there is no built-in way to do this in Chrome. There is a Chrome extension called "Open Tabs Next to Current" I think it is called that can do this.
You can set a keyboard shortcut too via the extension for opening a new tab next to the currently active tab. Click the "Keyboard shortcuts" tab. Then, enter a keyboard shortcut in the "Open new tab next to current tab" field.
Hope that helps its the easiest solution I have found
https://chrome.google.com/webstore/detail/open-tabs-next-to-current/gmpnnmonpnnmnhpdldahlekfofigiffh
The easiest solution is to use an extension. Otherwise, you may create a keyboard shortcut for a new tab to the right, but it has to typed into the address bar.
Do this :
- Open Chrome Settings > Search engine
- Click "Manage search engines and site search"
- Next to "Site search" click "Add"
- Enter the following:
- Search engine : Anything you like, for example "New tab to right"
- Shortcut : The characters to type into the address field, example
xx - URL : Enter
javascript:window.open()
- Now entering
xxin the address field will open a new tab to the right.
For further improvement, you may use a macro utility such as AutoHotKey to create a keyboard shortcut that will position to the address bar and type these characters for you.
The problem is that you are violating manifest version 2's content security policy. To fix it all you have to do is get rid of inline script, in this case your background page. Turn it into a background script like this:
manifest.json
"background":{
"scripts": ["background.js"]
},
background.js
chrome.browserAction.onClicked.addListener(function(activeTab){
var newURL = "http://stackoverflow.com/";
chrome.tabs.create({ url: newURL });
});
If, for some reason, you do need it to be a page, then simply include the script as an external file and declare it as a page like before.
In my case I needed to open link in a new tab when I clicked a link within extension popup window, it worked fine with target attribute set to _blank:
<a href="http://www.example.com" target="_blank">Example</a>
[Solved]
I mean only need left click, doesn't need to hold ctrl, or using middle button, etc.
In YouTube, when I **left** click a video, it always open in current tab. But I want to force it to open in new tab and then switch to that new tab.
I tried following extensions, but they don't work at all:
Open Links in Tabs
Open Link with New Tab
Tap To Tab
Tab Mix - Links
I also tried Chrome with some extensions, also failed.
So, is there anyway to satisfy my requirement?
---
Update:
This script works perfectly for me on YouTube:
https://greasyfork.org/en/scripts/23010-open-youtube-video-links-in-new-tab