Open a new browser tab in the background programmatically

Problem

I am using a web feed reader, TinyTinyRSS . When sifting channel lists, I would like to open interesting articles in new tabs, but in the background, because I want to read them only after I have looked through all the feed items.

TT-RSS has a hotkey "o" to open an article in a new tab, but it opens a tab in the foreground ( window.open ).

Now the question is: fix TT-RSS, I need to know how to open the background tab from javascript . It would be great if the solution worked in browsers (Firefox, Chrome, Opera, Safari).

I understand the issue of confidentiality, but including it for one certified web page is fine.

Existing (bad) solutions

Firefox

In about:config set browser.tabs.loadDivertedInBackground to true . This opens all the tabs from the pages in the background, which I do not want - I want this for only one application / website.

Chrome

Chrome has the shytab extension. Works only in chrome mode and for all pages.

+4
source share
2 answers

Back when pop-up ads were something like this, it was called a popunder window. Popunders used something like this:

 var popupWindow = window.open(...); popupWindow.blur(); window.focus(); 

Pop-up blocker related to what works and doesn't work, although your mileage may vary.

+4
source

I added another β€œbad” solution with the TT-RSS plugin that works in Chrome and Opera, at least but not Firefox:

It works by simulating a Ctrl click on an β€œimaginary” link that is created when a hotkey is triggered.

This requires TT-RSS β‰₯1.7.6 (not yet released, but give it a day).

If someone knows how to get his / other JS solution in Firefox: feel free to leave a comment.

+1
source

All Articles