Advertisement
Danny_Berova

evaluate tests

Apr 26th, 2020
755
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var authElement = document.evaluate(".//div[@id]", document, null, 9, null).singleNodeValue;
  2.     if (authElement) {
  3.       Logger.production("Author HoverCard EL: " + JSON.stringify(authElement));
  4.       if (authElement.getAttribute('data-hovercard')) {
  5.         Logger.production("Author HoverCard EL data_hovercard: " + authElement.getAttribute('data-hovercard'));
  6.       }
  7.       if (authElement.getAttribute('data-hovercard')) {
  8.         Logger.production("Author HoverCard EL text: commented");
  9.       }
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement