twooldcat
02-16-2021, 05:52 PM
[Only registered and activated users can see links]
[Only registered and activated users can 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:
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.
[Only registered and activated users can 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:
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.