Skip to content

Bookmarklet code broken in Firefox #2

Description

@simevidas

The javascript:!function () { … }(); format is not compatible with Firefox. I propose switching to javascript:(function () { … }());. (I'm referring to the Bookmarklet code displayed in the README.)

If a javascript:!function… bookmarklet is executed in Firefox, its code is loaded and executed inside the address bar, which in turn kills the current page. I guess, this is due to the code evaluating to true, unlike javascript:(function… which evaluates to undefined.

Note: This could be Windows-specific. Test here: http://jsfiddle.net/tot41ndo/ (drag into Bookmarks bar to test)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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