GeezerVison is showing github.com — Single quote in script name breaks the user script · Issue #3035 · greasemonkey/greasemonkey
Single quote in script name breaks the user script #3035Description
|
console.error('Script error in ${this.toString()}:' |
this.toString() is inserted without escaping the \ and ' characters.
Example that reproduces the issue:
// ==UserScript==
// @name Single quote ' test
// @include *
// ==/UserScript==
console.log('Single quote test');Reacted by Cerberus-tm, Stig Nygaard and Ricardo Mendonça Ferreira ActivityCerberus-tm commented on May 11, 2019 I have experienced this bug too. And it must be new, because all of a sudden one of my userscripts gave a mysterious error in the browser console, and it just failed to execute altogether. It had been functioning perfectly since forever.
@LMLB So it was very hard for me to locate this error. How did you do it? StigNygaard commented on May 17, 2019 Confirmed. But there's more to the problem.
I have several userscripts named something like "Stig's scriptname". Some of them was working, but one wasn't working for me. The one that wasn't working didn't seem to be activate at all. I couldn't get it to write anything in the console.
After some experiments including turning scripts on and off (and seeing this issue), I have come to the conclusion:
- If script is already installed, enabled and working, it will continue to work if you don't mess around with it (Until it is updated).
- If you disable a script, you cannot get it working again by re-enabling it :-( It seems to be permanently disabled (or in a non-working state) even though status says it is enabled.
Me too think it must be a recent problem, probably caused by latest Greasemonkey update.
A couple of days ago I released an update to Stig's Flickr Fixr, thus probably "disabling" the script for all current Greasemonkey users. Now I better hold back updating my two other userscripts, Stig's Art Grabr and Stig's Last.fm Album Linkr, until Greasemonkey has been updated, to avoid "disabling" them too? AltoRetrato commented on May 28, 2019 I've met this issue as well. Hoping that a new release will fix this soon! StigNygaard commented on Jun 2, 2019 Hi @arantius
Assuming @BadBrainz 's commit fixes this problem, what is the ETA of a new Greasemonkey release? Will we wait for other stuff before releasing a new version? Yes, I'm a bit impatient ... arantius commented on Jun 12, 2019 Manually merged the PR with an additional fix. StigNygaard commented on Jun 12, 2019 And all seems normal again in 4.9. Thanks :-)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|