open a new browser tab in background programmatically

前端 未结 2 834
忘掉有多难
忘掉有多难 2020-12-19 14:32

Problem

I\'m using a web-based feed reader, TinyTinyRSS. When sifting through the feed lists, I\'d like to open interesting articles in new tabs - but in the b

相关标签:
2条回答
  • 2020-12-19 15:13

    I added another "bad" solution with a TT-RSS plugin that works in Chrome and Opera, at least, but not Firefox:

    • OpenInBgTab @ GitHub
    • Thread at TT-RSS forum

    It works by simulating a Ctrl-click on an "imaginary" link that is created when the hotkey is triggered.

    It requires TT-RSS ≥1.7.6 (not yet released, but give it a day).

    If someone knows how to get it/another JS solution work in Firefox: feel free to leave a comment.

    0 讨论(0)
  • 2020-12-19 15:27

    Back when popup ads were a thing, this was called a "popunder" window. Popunders used to do something like this:

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

    Popup blocking kind of messed around with what does and doesn't work, though- your mileage may vary.

    0 讨论(0)
提交回复
热议问题