title: jQuery+Greasemonkey: All sites affected, not limited to "window.location.href.indexOf"
body: <p>I'm trying to have code ran only on specific set of URLs. For the life of me I can not figure out why every website I click, it runs the code, and not limited to the sites I limit it to.</p>
  
  <pre><code>// ==UserScript==
  // @name        test
  // @namespace   test1
  // @description test2
  // @include     https://*
  // @version     1
  // @grant       none
  // @require     http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js
  // ==/UserScript==
  
  
  $(document).ready(function () 
   {  if(   (!window.location.href.indexOf("https://www.youtube.com") &gt; -1)  
          &amp;&amp; (!window.location.href.indexOf("https://www.google.com") &gt; -1)    
        )   
    {   
      alert("test");
    }
  });
  </code></pre>