Results 1 to 2 of 2

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

  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)

  3. #2
    rockpaperscissors's Avatar
    Joined
    Feb 2021
    Posts
    3
    Userbars
    0
    Thanks
    2
    Thanked
    1/1
    Mentioned
    1 time
    Time Online
    8h 21m
    Avg. Time Online
    N/A
    THANK YOU SO MUCH! I knew something had to have changed.

    Sorry I should have specified that you have to select the item and then rightclick on the picture that pops up to the right of the inventory.

    The shift+right click way sounds way better, I'll try it out and see how it works.



    EDIT: I thought it wasn't working but then I switched to Chrome and WOW it worked beautifully. Thank you so much for making an even better code! I wouldn't call your hands grubby haha.
    Last edited by rockpaperscissors; 02-20-2021 at 10:06 PM.

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
  •