title: Making DOM element inaccessible from searching
body: <p>I would want to make DOM element inaccessible by search into tree/array whatever it is.</p>
  
  <p>Example code for overriding <code>getElementById</code> </p>
  
  <pre><code>var x = document.createElement("div");
  x.id = "foo";
  document.body.appendChild(x);
  var doc = document.getElementById;
  document.getElementById = function(a){
  if(doc.call(document, a) === x) return null;
    return doc.call(document, a);
  };
  </code></pre>
  
  <p>then <code>document.getElementById("foo")</code> returns <code>null</code> as expected.</p>
  
  <p>I can override all the functions but there is too many possibilities to get an element, for example <code>document.body.childNodes[x]</code></p>
  
  <p>Is it possible to override prototype or maybe delete element from tree/array where search works but no from DOM?</p>
  
  <p>Target browser is google-chrome.</p>