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.
https://wiki.greasespot.net/Metadata_Block#Description
Although not common, it does not match the original documentation, such as the following script does not work properly in this extension:
The code before the metadata block will be ignored and will not be executed.