Results 1 to 2 of 2

Thread: [DV] Help troubleshooting Tampermonkey userscript with right-click dropdown

Threaded View

  1. #1
    twooldcat's Avatar
    Joined
    Jan 2021
    Posts
    46
    Userbars
    0
    Thanks
    16
    Thanked
    98/28
    Mentioned
    4 times
    Time Online
    1d 21h 31m
    Avg. Time Online
    2m
    (you need an account to see links)

    (you need an account to see links)

    It seems like some of the constructs that the script depends on like contextmenu and menuitem are now deprecated - that's probably the issue. I tried messing around with it and it seems like the script will always exit on line 24, here:

    Code:
        if (!("contextMenu" in document.documentElement &&
             "HTMLMenuItemElement" in window)) return;
    If I comment out that line of code, the script will successfully add the listener that executes initMenu() when right-clicking. From there, it is a matter of finding out another way to edit the context menu. I hope that gets you going in the right direction.

  2. The Following User Says Thank You to twooldcat For This Useful Post:

    rockpaperscissors (02-20-2021)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •