Router to ezproxy only when request need to be proxied

below a js to use as URL in a markup, to have a link resolution :

javascript:function%20o(){window.location.replace('http://my-library-proxy.my-university/accesRef/?url='+location.href,"Accesdistant")};o()
traitements/cree_liste... parse ezproxy config.txt and included  files
to create its Data base