--
You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-labs-jet...@googlegroups.com.
To post to this group, send email to mozilla-la...@googlegroups.com.
Visit this group at https://groups.google.com/group/mozilla-labs-jetpack.
For more options, visit https://groups.google.com/d/optout.
The commands API needs Firefox 48 or later: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Browser_support_for_JavaScript_APIs#commands.For the examples in https://github.com/mdn/webextensions-examples, you can check this by looking at the "strict_min_version" key in manifest.json. For example: https://github.com/mdn/webextensions-examples/blob/master/commands/manifest.json#L13.
On Tue, Jul 5, 2016 at 12:53 PM, Vulcanos Tvorba webových stránek <tvorba.webu.h...@gmail.com> wrote:
This line makes problem in my FF 47.0.1
"commands": {
"toggle-feature": {
"suggested_key": { "default": "Ctrl+Shift+U" },
"description": "bla bla"
},
when I add it to any addon, the addon will not be loaded.
Why? Is it bug?
On Tuesday, 5 July 2016 12:10:31 UTC+2, Vulcanos Tvorba webových stránek wrote:I tried the example commands here but when I try to add it to Addon Debugger I don't see the addon in the list. I also tried to press the hotkey of the addon and also it does not work (Windows). I have the FF 47. What is wrong?
--
You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-labs-jetpack+unsub...@googlegroups.com.
Thank you for clarification. I did not know there is already v48 but I read about it to be released at August. I installed the beta version and the examples works now.
May I ask you about Favourite color demo?
https://github.com/mdn/webextensions-examples/tree/master/favourite-colour
I have seen the options_ui option generates window which is not practical, because I would like to generate different window rather like here
https://addons.cdn.mozilla.net/user-media/previews/full/132/132018.png?modified=1406526768
than the window which is similar to addons manager. What I would like to reach is a simple window, where wont be any buttons on the left side and no search bar on the top. Such window is better because it can be bigger even on small screen and small resolution like 800x600. So many form elements can fit onto the html page. Is it possible to do it with webextension?
On Tuesday, 5 July 2016 22:17:45 UTC+2, wbamberg wrote:
The commands API needs Firefox 48 or later: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Browser_support_for_JavaScript_APIs#commands.For the examples in https://github.com/mdn/webextensions-examples, you can check this by looking at the "strict_min_version" key in manifest.json. For example: https://github.com/mdn/webextensions-examples/blob/master/commands/manifest.json#L13.
On Tue, Jul 5, 2016 at 12:53 PM, Vulcanos Tvorba webových stránek <tvorba.webu.h...@gmail.com> wrote:
This line makes problem in my FF 47.0.1
"commands": {
"toggle-feature": {
"suggested_key": { "default": "Ctrl+Shift+U" },
"description": "bla bla"
},
when I add it to any addon, the addon will not be loaded.
Why? Is it bug?
On Tuesday, 5 July 2016 12:10:31 UTC+2, Vulcanos Tvorba webových stránek wrote:I tried the example commands here but when I try to add it to Addon Debugger I don't see the addon in the list. I also tried to press the hotkey of the addon and also it does not work (Windows). I have the FF 47. What is wrong?
--
You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-labs-jet...@googlegroups.com.
To post to this group, send email to mozilla-la...@googlegroups.com.
Visit this group at https://groups.google.com/group/mozilla-labs-jetpack.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-labs-jet...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-labs-jetpack+unsub...@googlegroups.com.
To post to this group, send email to mozilla-la...@googlegroups.com.
Visit this group at https://groups.google.com/group/mozilla-labs-jetpack.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-labs-jetpack+unsub...@googlegroups.com.
Thank you Will for your examples. Does it mind if I ask you some questions about your example codes? Currently I am trying the user-agent-rewriter (\popup) . When I click the button it opens the html page bellow the button, but when I click a link no page is opened or redirected. I see there is choose_ua.js which is included in choose_ua.html ...
But I try to debug. I have set breakpoints to choose_ua.js #7 where addEventListener is called. Then I click on a button or reload addon and click again. But the debugger never breaks on the breakpoint. So it looks like the file is not loaded - but is must be loaded when the debugger sees it. So I cannot find out why no action happens when I click on a link in the popup. I am using the Addons debugger.
Also I wanted to ask you if do you have some example how to change text size on html page, font family, font color and background of some elements?
If not, is it possible to do it with JQuery? I like JQuery and this way it would be easy for me.
What can I expect from the dev-addons list? Are there source codes included?
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-labs-jet...@googlegroups.com.
To post to this group, send email to mozilla-la...@googlegroups.com.
Visit this group at https://groups.google.com/group/mozilla-labs-jetpack.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-labs-jet...@googlegroups.com.
To post to this group, send email to mozilla-la...@googlegroups.com.
Visit this group at https://groups.google.com/group/mozilla-labs-jetpack.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-labs-jet...@googlegroups.com.
{
"applications": {
"gecko": {
"id": "some-o...@mozilla.org",
"strict_min_version": "48.0a1"
}
},
"background": {
"scripts": ["background.js"]
},
"description": "An example options ui",
"homepage_url": "https://github.com/mdn/webextensions-examples/tree/master/favourite-colour",
"manifest_version": 2,
"name": "Favourite colour",
"icons": {
"48": "icons/eye-icon-colored-48.png"
},
"options_ui": {
"page": "options.html",
"open_in_tab": true
},
"browser_action": {
"default_title": "Adapt page",
"browser_style": true,
"default_icon": {
"16": "icons/eye-icon-16.png",
"32": "icons/eye-icon-32.png",
"48": "icons/eye-icon-48.png"
},
"default_title": "Adapt"
},
"permissions": ["storage"],
"version": "1.0"
}
default_popup
for browser_action. Add B) I am not sure if this is what I need because I need to run script not to popup window.