Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An URL used to inject a content script into web pages in Chrome extension

In the manifest file of the Chrome extension "Search by Image", which allows you to search images on Google by just right clicking pictures on the web, the "content_scripts" field looks like this:

"content_scripts": [ {
  "css": [ "quimby.css" ],
  "js": [ "jquery-1.7.1.min.js", "quimby.js" ],
  "matches": [ "\u003Call_urls\u003E" ]
} ]

How does the match pattern "\u003Call_urls\u003E" work?

like image 635
chaohuang Avatar asked Jan 01 '12 23:01

chaohuang


People also ask

What is content script Chrome extension?

A content script is a part of your extension that runs in the context of a particular web page (as opposed to background scripts which are part of the extension, or scripts which are part of the website itself, such as those loaded using the <script> element).


1 Answers

\u003C and \u003E are unicode characters. What it is matching is <all_urls>

Those files will be injected into every page that the extension has permission to modify.

like image 153
Ansel Santosa Avatar answered Sep 19 '22 06:09

Ansel Santosa