Results 1 to 4 of 4

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

  1. #1
    twooldcat's Avatar
    Join Date
    Jan 2021
    Gender
    Posts
    12
    Userbars
    0
    Thanks
    7
    Thanked 33 Times in 9 Posts


    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Time Online
    18 h 44 m
    Avg. Time Online
    24 m
    Rep Power
    1
    https://stackoverflow.com/questions/...-to-replace-it

    https://developer.mozilla.org/en-US/...ement/menuitem

    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:



    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 (6 Days Ago)

  3. #2
    rockpaperscissors's Avatar
    Join Date
    Feb 2021
    Gender
    Posts
    3
    Userbars
    0
    Thanks
    2
    Thanked 1 Time in 1 Post


    Downloads
    0
    Uploads
    0
    Mentioned
    1 Post(s)
    Time Online
    7 h 21 m
    Avg. Time Online
    35 m
    Rep Power
    0
    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; 6 Days Ago 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
  •