Reply To: Chrome tabs
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 3 weeks, 6 days ago by RChandra. Reason: final comment about how I tried tackling the problem