userscripts icon indicating copy to clipboard operation
userscripts copied to clipboard

Invalid user scripts are not displayed in the editor

Open ACTCD opened this issue 4 months ago • 0 comments

User script files (.user.js) that currently fail to parse due to missing or incorrect metadata will not appear in the built-in editor.

I think this is not an expected behavior as we don't have the opportunity to modify and correct them via the built-in editor.

Example:

// ==InvalidUserScript==
// @name        NewScript-5undqj7x
// @description This is your new file, start writing code
// @match       *://*/*
// ==/InvalidUserScript==

console.log("InvalidUserScript");

ACTCD avatar Oct 23 '25 22:10 ACTCD