title: Change CSS when the current URL contains a certain string
body: <p>I used this function for checking the url</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          if (window.location.href.indexOf("franky") &gt; -1) {
              /* some code to change the css */;
          }
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>Currently it only works when I refresh the page.</p>
  
  <p>Is there a way to make it work when url change without any refresh ? Thanks</p>
  
  <p>EXAMPLE : its like you have to choose a color , you click on a button to select your color , it make example.com/color.html#/red ; example.com/color.html#/blue ; example.com/color.html#/black only the color change with no refresh and i want to add specific css when url contain each string color</p>