September 4, 2017 at 3:46 PM #6000
How do you force Chrome links to open in same tab/window?
Nothing in the Chrome store works.
GarySeptember 8, 2017 at 5:27 PM #6004
Just left-click on them. However, be aware that this behavior can be controlled by the programmer of the Web site you’re going to.September 19, 2017 at 3:30 PM #6041
It’s virtually impossible to implement completely; that’s likely why there isn’t an extension in the Chrome Store.
In a simplistic way, any “A” (anchor) element can have a target=”_blank” or target=”someName” attribute, which by default will open a new tab or window for the next page. If something goes through the page and manipulates each A which has a target attribute, and forces it to have the value “_top” instead, your desired behavior will at least come close. However, there are some pages which split up the main page into multiple frames, each with a target. An example would be a manual with links to chapters or topics on the (usually left) side of the page, and when the topic is clicked, it changes the contents of another frame.
What would be necessary is some sort of analyzer code, perhaps an AI, which could determine what these pages were trying to do and act accordingly to keep it all in a single window or tab. You just never know what might happen if for example an extension intercepted all calls to window.open() and attempts to use targets other than _top.
Can you tell I’m annoyed by these practices, and attempted to program some countermeasures? 🙂
- This reply was modified 2 months ago by RChandra. Reason: final comment about how I tried tackling the problem
You must be logged in to reply to this topic.