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?
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).
\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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With