Open in background tab (Chrome/Opera only)

Post plugins and custom CSS snippets here
phz
Bear Rating Disaster
Bear Rating Disaster
Posts: 77
Joined: 18 Mar 2013, 18:32

Open in background tab (Chrome/Opera only)

Postby phz » 02 Apr 2013, 19:15


This plugin will register a new action that opens links in a background tab by using a JS "hack", simulating a Ctrl-click on a fictive link element. This currently works in Chrome and Opera, does not work in Firefox and is not tested in anything else. Update: It stopped working in the Google Chrome development channel somewhere around version 41.0.2224.3, released late 2014. The stable and beta channel will probably follow in closing this functionality, since it can be considered somewhat of a bug to begin with. End update.

Since this is the first plugin that uses the `HOOK_HOTKEY_INFO` hook, I've commented everything rigorously in case anyone wants a sample implementation of this functionality.

Some additional functionality was added that registers another action with corresponding hotkey that opens all unread articles in the current view in background tabs and marks them as read. In Chrome, this requires explicit permission to be given for the TT-RSS instance domain to open pop-ups whenever multiple tabs are to be opened. Until this permission is given, Chrome will hide the tabs under a "Blocked pop-up windows" icon in the address bar. Chrome will prompt regarding this when the hotkey is triggered and tries to open multiple tabs.


TT-RSS ≥1.7.6.

For TT-RSS ≤1.7.8, use v1.1 of this plugin since the TT-RSS plugin API changed slightly at that point (a single line in the plugin was removed and a backwards compatible `api_version()` function for future API version checks were added; would be easy to manually "backport" for that matter).


The project lives at .

Updated description at 2013–06–11. The README at Github should always hold the latest information.
Updated description at 2014–12–01 regarding compatibility; specifically the part about the Google Chrome development version.
Last edited by phz on 01 Dec 2014, 19:13, edited 3 times in total.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Open in background tab (Chrome/Opera only)

Postby fox » 02 Apr 2013, 19:29

Adding to the wiki.

phz
Bear Rating Disaster
Bear Rating Disaster
Posts: 77
Joined: 18 Mar 2013, 18:32

Re: Open in background tab (Chrome/Opera only)

Postby phz » 02 Apr 2013, 19:41


User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Open in background tab (Chrome/Opera only)

Postby fox » 02 Apr 2013, 19:43

It would be nice to have a centralized plugin server with automatic updates using update.php...

User avatar
idoxlr8
Bear Rating Trainee
Bear Rating Trainee
Posts: 46
Joined: 25 Mar 2013, 20:04
Location: Texas, USA
Contact:

Re: Open in background tab (Chrome/Opera only)

Postby idoxlr8 » 02 Apr 2013, 20:47


onyxfox
Bear Rating Trainee
Bear Rating Trainee
Posts: 18
Joined: 19 Mar 2013, 11:54

Re: Open in background tab (Chrome/Opera only)

Postby onyxfox » 02 Apr 2013, 21:30

I'll have to give this plugin a try. I had added an open in background tab js call to the context menu's Open Original Article entry on my install, but using this plugin might be less hassle to maintain.

phz
Bear Rating Disaster
Bear Rating Disaster
Posts: 77
Joined: 18 Mar 2013, 18:32

Re: Open in background tab (Chrome/Opera only)

Postby phz » 02 Apr 2013, 21:45


yelfathi
Bear Rating Trainee
Bear Rating Trainee
Posts: 20
Joined: 14 May 2013, 19:32

Re: Open in background tab (Chrome/Opera only)

Postby yelfathi » 14 May 2013, 19:42

Hello, it does not work for me, I am using the latest version of TT-RSS and stable chrome version. Thanks

phz
Bear Rating Disaster
Bear Rating Disaster
Posts: 77
Joined: 18 Mar 2013, 18:32

Re: Open in background tab (Chrome/Opera only)

Postby phz » 15 May 2013, 16:14


yelfathi
Bear Rating Trainee
Bear Rating Trainee
Posts: 20
Joined: 14 May 2013, 19:32

Re: Open in background tab (Chrome/Opera only)

Postby yelfathi » 15 May 2013, 16:29


phz
Bear Rating Disaster
Bear Rating Disaster
Posts: 77
Joined: 18 Mar 2013, 18:32

Re: Open in background tab (Chrome/Opera only)

Postby phz » 15 May 2013, 20:23


yelfathi
Bear Rating Trainee
Bear Rating Trainee
Posts: 20
Joined: 14 May 2013, 19:32

Re: Open in background tab (Chrome/Opera only)

Postby yelfathi » 15 May 2013, 21:19

My provider has only PhP 5.3 and I am using Win7 and Ctrl+Left click works well.

I modified line 18+19 of openArticleInBackgroundTab.js but same problem :(

phz
Bear Rating Disaster
Bear Rating Disaster
Posts: 77
Joined: 18 Mar 2013, 18:32

Re: Open in background tab (Chrome/Opera only)

Postby phz » 16 May 2013, 12:45


yelfathi
Bear Rating Trainee
Bear Rating Trainee
Posts: 20
Joined: 14 May 2013, 19:32

Re: Open in background tab (Chrome/Opera only)

Postby yelfathi » 16 May 2013, 14:18


phz
Bear Rating Disaster
Bear Rating Disaster
Posts: 77
Joined: 18 Mar 2013, 18:32

Re: Open in background tab (Chrome/Opera only)

Postby phz » 16 May 2013, 16:03



Return to “Themes and plugins”

Who is online

Users browsing this forum: No registered users and 3 guests