Using my version of jqueryui in extension along with site supplied different one

7 views
Skip to first unread message

Anurag Gupta

unread,
Jun 20, 2015, 6:39:08 AM6/20/15
to chromium-...@chromium.org
I've a website which is using it's own jqueryui library.

Without relying on it I want to use my own version packaged with the extension.

What is the way to do it? If I call a function then which library's one will be called?

PhistucK

unread,
Jun 20, 2015, 8:04:34 AM6/20/15
to Anurag Gupta, Chromium-extensions
You mean, in content scripts? You cannot access the libraries of the page using content scripts, so it will always use your own supplied library.


PhistucK

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" 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 http://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/2508e486-6869-42cd-9529-4ad99acff3a8%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Anurag Gupta

unread,
Jun 21, 2015, 3:15:58 AM6/21/15
to chromium-...@chromium.org, rag.ra...@gmail.com
Thanks that helps. But then how can we use the site libraries?


On Saturday, June 20, 2015 at 5:34:34 PM UTC+5:30, PhistucK wrote:
You mean, in content scripts? You cannot access the libraries of the page using content scripts, so it will always use your own supplied library.


PhistucK

On Sat, Jun 20, 2015 at 1:39 PM, Anurag Gupta <rag.ra...@gmail.com> wrote:
I've a website which is using it's own jqueryui library.

Without relying on it I want to use my own version packaged with the extension.

What is the way to do it? If I call a function then which library's one will be called?

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.

PhistucK

unread,
Jun 21, 2015, 3:23:58 AM6/21/15
to Anurag Gupta, Chromium-extensions
You create a script element and either set a local extension resource URL as its src, or inject your code into it.
Note, however, that doing so is fully visible and exposed to the page, and can sometimes prevent your code from running as you expect.


PhistucK

On Sun, Jun 21, 2015 at 10:15 AM, Anurag Gupta <rag.ra...@gmail.com> wrote:
Thanks that helps. But then how can we use the site libraries?

On Saturday, June 20, 2015 at 5:34:34 PM UTC+5:30, PhistucK wrote:
You mean, in content scripts? You cannot access the libraries of the page using content scripts, so it will always use your own supplied library.


PhistucK

On Sat, Jun 20, 2015 at 1:39 PM, Anurag Gupta <rag.ra...@gmail.com> wrote:
I've a website which is using it's own jqueryui library.

Without relying on it I want to use my own version packaged with the extension.

What is the way to do it? If I call a function then which library's one will be called?

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" 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 http://groups.google.com/a/chromium.org/group/chromium-extensions/.
Reply all
Reply to author
Forward
0 new messages