-3

GM_info would only return info of the main script.

Example: GM_info.script.name wrote inside @require file "xyz" would return "abc" which is the main script's name.

Mr. Polywhirl
  • 42,981
  • 12
  • 84
  • 132
axtiv
  • 1
  • 1

1 Answers1

0

The info of the GM_info is prepared for the userscript. Any JavaScript from @require are injected as they are, and not processed.

Therefore, GM_info will only correspond to the userscript and not its auxiliary JavaScript.

erosman
  • 7,094
  • 7
  • 27
  • 46