Skip to content

Inconsistency with jQuery vs Tampermonkey #2404

@Purfview

Description

@Purfview

Environment: Latests monkeys on Firefox (Windows 10)

On some sites [can't link as it's non-public] an userscript fails at this line with "Uncaught TypeError: can't access property "each", $(...) is null" when Tampermonkey works.

Violentmonkey needs one of the fixes listed below:

  1. Add // @inject-into content
  2. Replace all $ with jQuery
  3. Add const $ = jQuery.noConflict();
  4. In settings change "Injection mode" from "auto" to "content"

Can Violentmonkey just work out of the box like Tampermonkey in such case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    externalinteroperabilityinteroperability of userscript engines, a difference in behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions