title: Remove part of url using javascript
body: <p>I need to remove part of url if it matches <code>//videoid?v=</code></p>
  
  <p>assuming my url can be </p>
  
  <pre><code> - www.abc.com/video/
   - www.abc.com/video/videoid?v=1234567
   - www.abc.com/video//videoid?v=1234567
  </code></pre>
  
  <p>in case url has <code>//</code> forward slash before <code>videoid?v=</code> then i need to remove single <code>/</code> from the url so that url will be correct such as <code>www.abc.com/video//videoid?v=1234567</code></p>
  
  <p><code>currentURL = document.URL;</code></p>