Bug 451953 - Greasemonkey @require arbitrarily adds .js to file extension
Summary: Greasemonkey @require arbitrarily adds .js to file extension
Status: REPORTED
Alias: None
Product: Falkon
Classification: Applications
Component: extensions (other bugs)
Version First Reported In: 3.2.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-27 09:29 UTC by genghiskhan
Modified: 2022-03-31 09:48 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:
genghiskhan: Usability+


Attachments
screenshot from ff (122.17 KB, image/png)
2022-03-29 20:48 UTC, genghiskhan
Details

Note You need to log in before you can comment on or make changes to this bug.
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.