Bug 451953

Summary: Greasemonkey @require arbitrarily adds .js to file extension
Product: [Applications] Falkon Reporter: genghiskhan
Component: extensionsAssignee: David Rosca <nowrep>
Status: REPORTED ---    
Severity: normal Flags: genghiskhan: Usability+
Priority: NOR    
Version First Reported In: 3.2.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot from ff

Description genghiskhan 2022-03-27 09:29:10 UTC
I'm testing an XML stylesheet using a Userscript and have // @require falkon.xsl in metadata.

File falkon.xsl is copied to /greasemonkey/requires/ directory as falkon.xsl.js which is not the filename specified in the Userscript.

A possible workaround is to insert to whole file into the script as string, but it's not pretty on eyes, as syntax highlighting for XML is not available upon edit.
Comment 1 genghiskhan 2022-03-29 20:40:50 UTC
Greasemonkey extension of the Fox respect file extensions that don't end with .js.
Please put this on high/critical priority/importance.
Comment 2 genghiskhan 2022-03-29 20:48:43 UTC
Created attachment 147829 [details]
screenshot from ff
Comment 3 genghiskhan 2022-03-31 09:48:54 UTC
I've used the wrong Metadata Block.
There's @resource for non-js file.

https://wiki.greasespot.net/Metadata_Block#.40require
https://wiki.greasespot.net/Metadata_Block#.40resource

I still think that Falkon should not rename @require files, unless this is like that for all other userscript managers.