CodePen

HTML

            
              <a href="index.html">Link 1</a>
<a href="../index.html">Link 2</a>
<a href="../../index.html">Link 3</a>
<a href="../../../index.html">Link 4</a>
<a href="../../../../index.html">Link 5</a>
<a href="../../../../../index.html">Link 6</a>
            
          
!

CSS

            
              
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              $(function(){
  $('a').each(function(){
    $(this).attr('href', function(index, old) {
      return old.replace(new RegExp('../','g'), '');
    });
  });
});  
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................