Advertisement
Guest User

Untitled

a guest
Dec 7th, 2021
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. target.on_DOMMenuItemActive = function(event) {
  2. /*
  3. if (super.on_DOMMenuItemActive) {
  4. super.on_DOMMenuItemActive(event);
  5. }
  6. */
  7. let elt = event.target;
  8. if (elt.parentNode != this) {
  9. return;
  10. }
  11.  
  12. if (window.XULBrowserWindow) {
  13. let placesNode = elt._placesNode;
  14.  
  15. var linkURI;
  16. if (placesNode && PlacesUtils.nodeIsURI(placesNode)) {
  17. linkURI = placesNode.uri;
  18. } else if (elt.hasAttribute("targetURI")) {
  19. linkURI = elt.getAttribute("targetURI");
  20. }
  21.  
  22. if (linkURI) {
  23. window.XULBrowserWindow.setOverLink(linkURI);
  24. }
  25. }
  26. }.bind(target);
  27.  
  28.  
  29. const shadow = target.shadowRoot;
  30.  
  31. の前に追加してみるとか
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement