Skip to content

metadata block revise #870

@ACTCD

Description

@ACTCD

https://wiki.greasespot.net/Metadata_Block#Description

The metadata block appears in JavaScript line comments and may appear anywhere in the top level Greasemonkey code scope of the script, but is usually near the top of the file.

Although not common, it does not match the original documentation, such as the following script does not work properly in this extension:

console.log("DEBUG1"); // not work

// ==UserScript==
// @name               DEBUG
// @match              *://*/*
// ==/UserScript==

console.log("DEBUG2");

The code before the metadata block will be ignored and will not be executed.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions