title: Get the current url but without the http:// part bookmarklet!
body: <p>Guys I have a question, hoping you can help me out with this one. I have a bookmarklet;</p>
  
  <pre><code>javascript:q=(document.location.href);void(open('http://other.example.com/search.php?search='+location.href,'_self ','resizable,location,menubar,toolbar,scrollbars,status'));
  </code></pre>
  
  <p>which takes URL of the current webpage and search for it in another website. When I use this bookmarklet it takes the whole URL including <code>http://</code> and searches for it. But now I would like to change this bookmarklet so it will take only the <code>www.example.com</code> or just <code>example.com</code> (without <code>http://</code>) and search for this url. Is it possible to do this and can you please help me with this one?</p>
  
  <p>Thank you!</p>