Skip to content

Userscripts with quotes in their names break #401

Description

@MynockSpit

Scripts w/ quotes (") in their usernames fail to get injected.

Reproduction steps:

  1. Create a new script with quotes in the name.
    // ==UserScript==
    // @name          My "Quoted" Script
    // @match         <all_urls>
    // @exclude-match *://*.google.com/*
    // @noframes
    // ==/UserScript==
    
    console.log(`This will never trigger b/c of the "Quoted" bit in the name.`);
    
  2. Observe the following error and that the log isn't run.

image

I believe the issue lies here:

const US_filename = "${filename}";

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions