title: if self === top or google.com
body: <pre><code>&lt;script type="text/javascript"&gt;
           if (self === top) {
            var antiClickjack = document.getElementById("antiClickjack");
            antiClickjack.parentNode.removeChild(antiClickjack);
           } else {
            top.location = self.location;
           }
        &lt;/script&gt;
  </code></pre>
  
  <p>I have this code that does not allow iframes but I want to allow iframes only from google.com how can i do this?</p>
  
  <p>I think the pseudo-code would be
   <code>if (self === top) or google.com</code> but dont know how to do this in javascript</p>