Skip to content

[BUG] Script popup not populated on some sites since v2.32.0 #2444

@chocolateboy

Description

@chocolateboy

Sequence of actions:

  1. Upgrade to Violentmonkey v2.32.0 or v2.34.0
  2. Navigate to a site with JavaScript disabled (?)
  3. Badge on VM icon indicates multiple scripts are enabled

Problem:

Clicking the VM icon displays no scripts.

Expected result:

Installed/enabled scripts are displayed in the popup.

Devtools console contents:

Console error: "TypeError: undefined is not a function: PopupShown -> post"

if (bridge.grantless) bridge.post('GetGrantless');

Environment:

  • OS: Linux (Arch)
  • Browser: Firefox 147.0.3
  • Violentmonkey Version: 2.34.0

Still trying to narrow this down. It seems to be always happening on sites where JavaScript is disabled (cf.), but also some sites where it is enabled, such as this site (GitHub). Not sure it's a CSP issue as the popup is populated OK on, e.g., Twitter.

The scripts are all working and the count in the badge is correct, they're just not displayed when the popup is opened:

Image

I've tried doing an export -> empty recycle bin -> import, and the problem persists. If I revert back to 2.31.0 (and re-import), the problem goes away. There's no syntax error in the exported violentmonkey JSON file, or anything obvious like that. I think I'm using the default settings:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions