Open as popup extension ?

Talk about add-ons and extension development.
Post Reply
hien4990
Posts: 4
Joined: February 11th, 2016, 9:15 am

Open as popup extension ?

Post by hien4990 »

Are there extension "open as popup" on Firefox like Chrome?
Like these :
https://chrome.google.com/webstore/deta ... dkhlcaeopd
https://chrome.google.com/webstore/deta ... ikpmghbcpc
morat
Posts: 6432
Joined: February 3rd, 2009, 6:29 pm

Re: Open as popup extension ?

Post by morat »

It may be possible to convert these simple extensions in Firefox 45.

WebExtensions in Firefox 45
http://blog.mozilla.org/addons/2015/12/ ... efox-45-2/

* background.js file from the Open as Popup extension

Code: Select all

chrome.browserAction.onClicked.addListener(function (tab) {
  chrome.windows.create({
    tabId: tab.id,
    type: "popup",
  });
});
http://developer.mozilla.org/en-US/Add- ... wserAction
http://developer.mozilla.org/en-US/Add- ... PI/windows

These APIs will be available in Firefox 45.
Noitidart
Posts: 1168
Joined: September 16th, 2007, 8:01 am

Re: Open as popup extension ?

Post by Noitidart »

Yes see this very related topic here - these guys came up with a simple helper function - https://discourse.mozilla-community.org ... h-sdk/7085
morat
Posts: 6432
Joined: February 3rd, 2009, 6:29 pm

Re: Open as popup extension ?

Post by morat »

I got the Open as Popup extension to install in Firefox 45.

I had to edit the manifest.json file and delete the _metadata\verified_contents.json file.

Code: Select all

- "update_url": "https://clients2.google.com/service/update2/crx",

+ "applications": {
+   "gecko": {
+     "id": "abracadabra@example.org"
+   }
+ },
Download Chrome Extensions
http://chrome.google.com/webstore/detai ... diffmgedin

Porting Chrome Extensions to Firefox with WebExtensions
http://hacks.mozilla.org/2015/10/portin ... xtensions/

Unfortunately, the api is still unsupported in Firefox 45.
Type error for parameter createData (Property "type" is unsupported by Firefox) for windows.create.
pintassilgo
Posts: 200
Joined: August 30th, 2013, 3:50 pm

Re: Open as popup extension ?

Post by pintassilgo »

You could try detaching the tab (drag it down) then press F9 after install this extension:
https://addons.mozilla.org/en-US/firefo ... ocus-mode/
hien4990
Posts: 4
Joined: February 11th, 2016, 9:15 am

Re: Open as popup extension ?

Post by hien4990 »

You could try detaching the tab (drag it down) then press F9 after install this extension:
https://addons.mozilla.org/en-US/firefo ... ocus-mode/
that addon hide the title bar so I cannot move the window.
Porting Chrome Extensions to Firefox with WebExtensions
http://hacks.mozilla.org/2015/10/portin ... xtensions/

Unfortunately, the api is still unsupported in Firefox 45.
Firefox 46 still unsupport this extension :(
Post Reply