Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><code>@ic</code> is not a valid meta-rule, so it's ignored.<br> Use <a href="http://wiki.greasespot.net/Metadata_Block#.40require" rel="nofollow noreferrer"><code>@require</code></a> if you want to load jQuery in your user script.</p> <pre><code>// ==UserScript== // @name Foo // @namespace Bar // @include * // @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js // ==/UserScript== </code></pre> <p>EDIT: In the comments, you said that you're using <strong>Chrome</strong>. Chrome does <strong>not</strong> support the <code>@require</code> rule. See also:</p> <ul> <li>GreaseSpot Wiki: <a href="http://wiki.greasespot.net/Cross-browser_userscripting" rel="nofollow noreferrer">Cross-browser userscripting</a></li> <li>Stack Overflow: <a href="https://stackoverflow.com/questions/2588513/why-doesnt-jquery-work-in-chrome-user-scripts-greasemonkey">Why doesn&#39;t jQuery work in Chrome user scripts (Greasemonkey)?</a></li> <li>Stack Overflow: <a href="https://stackoverflow.com/questions/2246901/how-can-i-use-jquery-in-greasemonkey-scripts-in-google-chrome">How can I use jQuery in Greasemonkey scripts in Google Chrome?</a></li> </ul> <p>If you want full Greasemonkey support in Chrome, use <a href="https://chrome.google.com/webstore/detail/dhdgffkkebhmkfjojejmpbldmpobfkfo" rel="nofollow noreferrer">Tampermonkey</a>.</p> <h2>Clearing up confusion about User scripts in Chrome</h2> <p>Chrome does <strong>not</strong> natively support GreaseMonkey. Whenever a <code>.user.js</code> file is loaded, it's converted to a Chrome extension in form of a <a href="http://code.google.com/chrome/extensions/content_scripts.html" rel="nofollow noreferrer">Content script</a>.</p> <p>For more information on User scripts in Chrome, see <a href="http://www.chromium.org/developers/design-documents/user-scripts" rel="nofollow noreferrer">this documentation</a>.</p> <p>The User script is literally copied into the extension's directory:</p> <pre><code>// ==UserScript== // @name Foo // @namespace Bar // @include * // @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js // ==/UserScript== alert(typeof $) </code></pre> <p>A <a href="http://code.google.com/chrome/extensions/manifest.html" rel="nofollow noreferrer"><code>manifest.json</code></a> file is created, based on the meta block. When the User script contains a <code>@include</code> rule, its <code>matches</code> rule will contain <code>https://*/*</code> and <code>http://*/*</code>, because of the too loose <code>@include</code> rule.</p> <p>The contents of the generated <code>manifest.json</code> looks like:</p> <pre><code>{ "content_scripts": [ { "exclude_globs": [ ], "include_globs": [ "*" ], "js": [ "script.js" ], "matches": [ "http://*/*", "https://*/*" ], "run_at": "document_idle" } ], "converted_from_user_script": true, "description": "", "key": "+.... some key ...=", "name": "Foo", "version": "1.0" } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload