Skip to content

The Bookmarklet Maker should strip JavaScript code comments first #3

@TechAurelianMisc2

Description

@TechAurelianMisc2

For the following code:

// Show an alert window
alert('hello world');

I get a the following bookmarklet output:

javascript:(function()%7B%2F%2F%20Show%20an%20alert%20window%0Aalert('hello%20world')%3B%7D)()%3B

but I think the JavaScript comments should be removed, and get

javascript:(function()%7Balert('hello%20world')%3B%7D)()%3B

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions