title: How to delete part of a URL using Greasemonkey?
body: <p>I'm trying to make a Greasemonkey script that passes me from this:</p>
  
  <pre><code>http://redirector/referal_ID:site#link
  </code></pre>
  
  <p>to this:</p>
  
  <pre><code>link
  </code></pre>
  
  <p>In other words, I need to delete the first part of the links that I click on, bypassing the redirector pages <code>http://redirector/referal_ID:site#</code> and keep only what is after the # character the <strong>link</strong>.</p>
  
  <p>Note that <strong>redirector</strong> changes frequently, <strong>referal_id</strong> is always unique and different, and <code>site#</code> is the only constant string in all of the links.</p>
  
  <p>I've tried to modify various scripts but my, next to null, knowledge of javascript foils all my attempts.</p>
  
  <p><strong>--------------------------------------------------------------------EDIT-----------------------------------------------------------------------</strong></p>
  
  <p>An example of what I need to do is to modify this:</p>
  
  <pre><code>http://firstfirst.net/identi_ref?q=Waterfox%2033.0.2%20[Mozilla%20Firefox%20de%2064%20bits]&amp;ref=http://www.identi.li/c#https://shared.com/dhq1l9djj1?s=l
  </code></pre>
  
  <p>into this:</p>
  
  <pre><code>https://shared.com/dhq1l9djj1?s=l
  </code></pre>
  
  <p>The site where I want the script to work is <code>http://www.identi.li/</code></p>