سلام.من از کشور ایران شهر تهران هستم
--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/692ca0bc-c2c9-4a7f-b3d1-153f70ab94dd%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
--
Without specific questions, people are less likely to step in and help.
☆PhistucK
On Fri, Dec 16, 2016 at 11:25 PM, Mohammad Amir Hameed Attari <picwellw...@gmail.com> wrote:
Hi guys
I am making a Chrome extension. I am stuck at a point I need little help to continue my work. Can anybody help me?
here is link to what I am working upon.
--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsubscribe...@chromium.org.
I am using gulp as my build system and browser-sync for the server.
Problem is :
1 - Browser-sync does not open its server at chrome-extension:// protocol where my extension actually work. So I have to manually open the page and refresh it.
2 - I am using react in my extension. But react devtools does not work under chrome-extension:// protocol. So I can not debug my react components.
3 - Interface (UI) of my extension work fine on localhost:3000(Browser-sync defaults) and so is react devtools but Chrome api does not work outside the scope of extension.
I have came down to the point that Content script ideally should have access to Chrome Messaging API but it is not. It is only working under chrome-extension:// not under http .
--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsubscribe...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/7a9675fd-f9c4-4a17-a3d4-2e4697e5b997%40chromium.org.
در تاریخ 23 دسامبر 2016 9:28، "Mohammad Amir Hameed Attari" <picwellw...@gmail.com> نوشت:
>
> Ok thanks.Will do that. but I when I set a break point at chrome.runtime.onMessage.addListener.. it would stop at that line but would not go inside. But Now as I am using tabs.sendMessage. onMessage is working well.
>
>
>
>>> Regards
>>> Amir Hameed
>>>
>>> Emails:
>>> m...@amirhameed.com
>>> picwellw...@gmail.com
>>>
>>> Skype: picwellwisher12pk
>>>
>>>
>>> URLs:
>>> www.amirhameed.com
>>>
>>>
>>> Author at (Envato) vector.tutsplus.com
>>> Author at (Envato) webdesign.tutsplus.com
>>>
>>> Mobile:
>>> +92 322 422 8530
>>>
>>> On Fri, Dec 23, 2016 at 12:08 AM, Mohammad Amir Hameed Attari <picwellw...@gmail.com> wrote:
>>>>
>>>> content.js:14 Uncaught TypeError: Cannot read property 'addListener' of undefined
>>>> at http://localhost:3000/build/js/content.js:14:25
>>>>
>>>> to be exact. And I have not pushed these latest changes to github yet. I am attaching files here.
>>>>
>>>>
>>>>
>>>> Regards
>>>> Amir Hameed
>>>>
>>>> Emails:
>>>> m...@amirhameed.com
>>>> picwellw...@gmail.com
>>>>
>>>> Skype: picwellwisher12pk
>>>>
>>>>
>>>> URLs:
>>>> www.amirhameed.com
>>>>
>>>>
>>>> Author at (Envato) vector.tutsplus.com
>>>> Author at (Envato) webdesign.tutsplus.com
>>>>
>>>> Mobile:
>>>> +92 322 422 8530
>>>>
>>>> On Fri, Dec 23, 2016 at 12:03 AM, Mohammad Amir Hameed Attari <picwellw...@gmail.com> wrote:
>>>>>
>>>>> Uncaught TypeError: Cannot read property 'addListener' of undefined
>>>>> on line 14 content.js (content.js is content script)
>>>>>
>>>>> " chrome.runtime.onMessage.addListener(function (request, sender) { ...."
>>>>>
>>>>> Another strange thing is if I load content.js in onetab.html(the main html file) as js it works. But it does not work as a content script itself even under chrome-extension-developer://
>>>>>
>>>>>
>>>>>
>>>>> Regards
>>>>> Amir Hameed
>>>>>
>>>>> Emails:
>>>>> m...@amirhameed.com
>>>>> picwellw...@gmail.com
>>>>>
>>>>> Skype: picwellwisher12pk
>>>>>
>>>>>
>>>>> URLs:
>>>>> www.amirhameed.com
>>>>>
>>>>>
>>>>> Author at (Envato) vector.tutsplus.com
>>>>> Author at (Envato) webdesign.tutsplus.com
>>>>>
>>>>> Mobile:
>>>>> +92 322 422 8530
>>>>>
>>>>> On Thu, Dec 22, 2016 at 1:04 PM, PhistucK <phis...@gmail.com> wrote:
>>>>>>
>>>>>> Very strange... Are you sure it is fine? Perhaps Chrome does not really reload your manifest due to this error and you keep seeing the previous version of the manifest which may exclude some content scripts?
>>>>>>
>>>>>> Anyway, post the errors.
>>>>>>
>>>>>>
>>>>>> ☆PhistucK
>>>>>>
>>>>>> On Thu, Dec 22, 2016 at 10:00 AM, Mohammad Amir Hameed Attari <picwellw...@gmail.com> wrote:
>>>>>>>
>>>>>>> yeah sorry I shall post that too. by the way my manifest is working fine with comments. although I know json does not do good with comments.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Regards
>>>>>>> Amir Hameed
>>>>>>>
>>>>>>> Emails:
>>>>>>> m...@amirhameed.com
>>>>>>> picwellw...@gmail.com
>>>>>>>
>>>>>>> Skype: picwellwisher12pk
>>>>>>>
>>>>>>>
>>>>>>> URLs:
>>>>>>> www.amirhameed.com
>>>>>>>
>>>>>>>
>>>>>>> Author at (Envato) vector.tutsplus.com
>>>>>>> Author at (Envato) webdesign.tutsplus.com
>>>>>>>
>>>>>>> Mobile:
>>>>>>> +92 322 422 8530
>>>>>>>
>>>>>>> On Thu, Dec 22, 2016 at 12:54 PM, PhistucK <phis...@gmail.com> wrote:
>>>>>>>>
>>>>>>>> Never tell someone, "with errors", without pasting the actual errors. :)
>>>>>>>>
>>>>>>>>
>>>>>>>> ☆PhistucK
>>>>>>>>
>>>>>>>> On Thu, Dec 22, 2016 at 9:51 AM, Mohammad Amir Hameed Attari <picwellw...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>> Previously it was
>>>>>>>>>
>>>>>>>>> https://github.com/picwellwisher12pk/onetab-advanced/blob/master/src/scripts/common.tsx
>>>>>>>>> line 16
>>>>>>>>>
>>>>>>>>> Now I have merged the chrome.runtime.onMessage.addListener
>>>>>>>>> to content script. Everytime with errors
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Regards
>>>>>>>>> Amir Hameed
>>>>>>>>>
>>>>>>>>> Emails:
>>>>>>>>> m...@amirhameed.com
>>>>>>>>> picwellw...@gmail.com
>>>>>>>>>
>>>>>>>>> Skype: picwellwisher12pk
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> URLs:
>>>>>>>>> www.amirhameed.com
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Author at (Envato) vector.tutsplus.com
>>>>>>>>> Author at (Envato) webdesign.tutsplus.com
>>>>>>>>>
>>>>>>>>> Mobile:
>>>>>>>>> +92 322 422 8530
>>>>>>>>>
>>>>>>>>> On Thu, Dec 22, 2016 at 12:37 PM, PhistucK <phis...@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>> JSON does not tolerate comments, I guess you are removing those in the build process.
>>>>>>>>>>
>>>>>>>>>> Anyway, where is the code that tries to use the message passing API but fails?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ☆PhistucK
>>>>>>>>>>
>>>>>>>>>> On Thu, Dec 22, 2016 at 9:25 AM, Mohammad Amir Hameed Attari <picwellw...@gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>> oh I am really sorry. that is because that is in the build folder that is created after gulp build process. I should manually put manifest in src folder too. I have attached my manifest anyway
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Regards
>>>>>>>>>>> Amir Hameed
>>>>>>>>>>>
>>>>>>>>>>> Emails:
>>>>>>>>>>> m...@amirhameed.com
>>>>>>>>>>> picwellw...@gmail.com
>>>>>>>>>>>
>>>>>>>>>>> Skype: picwellwisher12pk
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> URLs:
>>>>>>>>>>> www.amirhameed.com
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Author at (Envato) vector.tutsplus.com
>>>>>>>>>>> Author at (Envato) webdesign.tutsplus.com
>>>>>>>>>>>
>>>>>>>>>>> Mobile:
>>>>>>>>>>> +92 322 422 8530
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Dec 22, 2016 at 12:21 PM, PhistucK <phis...@gmail.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Unless I am blind, I cannot find your manifest.json.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> ☆PhistucK
>>>>>>>>>>>>
>>>>>>>>>>>> On Thu, Dec 22, 2016 at 9:09 AM, Mohammad Amir Hameed Attari <picwellw...@gmail.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Yes I have changed the code a bit. But Now and then ,results were same.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Regards
>>>>>>>>>>>>> Amir Hameed
>>>>>>>>>>>>>
>>>>>>>>>>>>> Emails:
>>>>>>>>>>>>> m...@amirhameed.com
>>>>>>>>>>>>> picwellw...@gmail.com
>>>>>>>>>>>>>
>>>>>>>>>>>>> Skype: picwellwisher12pk
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> URLs:
>>>>>>>>>>>>> www.amirhameed.com
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Author at (Envato) vector.tutsplus.com
>>>>>>>>>>>>> Author at (Envato) webdesign.tutsplus.com
>>>>>>>>>>>>>
>>>>>>>>>>>>> Mobile:
>>>>>>>>>>>>> +92 322 422 8530
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Thu, Dec 22, 2016 at 12:08 PM, PhistucK <phis...@gmail.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Have you changed that code, or are you using the same exact code?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ☆PhistucK
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Thu, Dec 22, 2016 at 9:00 AM, Mohammad Amir Hameed Attari <picwellw...@gmail.com> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I m sorry i m not good with Forums. I guess these are my first questions on any forum. I thought it would be better to create new topic based on the right question.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> As for the code I had provided url to github repo in first message.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Regards
>>>>>>>>>>>>>>> Amir Hameed
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Emails:
>>>>>>>>>>>>>>> m...@amirhameed.com
>>>>>>>>>>>>>>> picwellw...@gmail.com
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Skype: picwellwisher12pk
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> URLs:
>>>>>>>>>>>>>>> www.amirhameed.com
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Author at (Envato) vector.tutsplus.com
>>>>>>>>>>>>>>> Author at (Envato) webdesign.tutsplus.com
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Mobile:
>>>>>>>>>>>>>>> +92 322 422 8530
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Thu, Dec 22, 2016 at 11:56 AM, PhistucK <phis...@gmail.com> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> You need to show some code and manifest.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Also, there is no reason to post a message on one thread and start another thread for the same topic.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> ☆PhistucK
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Thu, Dec 22, 2016 at 8:09 AM, Mohammad Amir Hameed Attari <picwellw...@gmail.com> wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I have came down to the point that Content script ideally should have access to Chrome Messaging API but it is not. It is only working under chrome-extension:// not under http .
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>> You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
>>>>>>>>>>>>>>>>> To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
>>>>>>>>>>>>>>>>> To post to this group, send email to chromium-...@chromium.org.
>>>>>>>>>>>>>>>>> Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
>>>>>>>>>>>>>>>>> To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/7a9675fd-f9c4-4a17-a3d4-2e4697e5b997%40chromium.org.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> For more options, visit https://groups.google.com/a/chromium.org/d/optout.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
> To post to this group, send email to chromium-...@chromium.org.
> Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
> To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/CAFNFF2VoFWsPt%2BCbHYF%2BhnW%2BvCt2P%3DLVoWRjun-sUnZwqZOAYg%40mail.gmail.com.