Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. document.addEventListener('DOMContentLoaded', function(){
  2.  
  3.     remove(x("/html/body/table[2]/tbody/tr/td/table/tbody/tr/td/table/tbody/tr/td/table/tbody/tr[2]/td/table")[0]);
  4. }, false);
  5.  
  6. function x(xpath, root) {
  7.   var doc = root ? root.evaluate ? root : root.ownerDocument : document, next;
  8.   var got = doc.evaluate(xpath, root||doc, null, null, null), result = [];
  9.   while(next = got.iterateNext())
  10.     result.push(next);
  11.   return result;
  12. }
  13. function remove(element) {
  14.   if (element)
  15.     element.parentNode.removeChild(element);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement