Writing my thesis, I was faced with internet sources in my bibliography. By default, the url (or hypertex) package uses tt-fonts for the URLs, however, I didn’t want to mix in another typeface.

Consider the result that I got with \urlstyle{same}:

I didn’t like the extreme spacing between the slashes (//), although it was obviously the same result as if I’d typed // directly somewhere in my document.

Finally, after studying the url.sty source for a while, I came up with the following hack:

\urlstyle{same}
\def\UrlBreaks{\do\.\do\\\do\/\do\!\do\_\do\|\do\;\do\>\do\]%no @
\do\)\do\,\do\?\do\'\do+\do\=\do\#}%