Disable URL Shortening/ Formatting in Chrome's Console
One workaround I found wasn't to log the actual values I was wanting. Instead I set it to a window variable and use copy(window.varToCopy)
copy()
is a native Chrome function you can use in the console to copy the data to your clipboard. Luckily it seems that it doesn't format anything you pass into it, so I can then get the actual URL rather than the broken one.
This is only a workaround, hopefully someone knows how to remove console formatting!
My workaround is to use console.dir(url);
. It isn't designed for this purpose, but it definitely does the trick:
You can't really open the hierarchical listing, but you don't need to anyway.
I ran into this issue when I had a long array of long urls. Nothing of the above helped.
The solution I finally came up with is:
console.dir(JSON.stringify(urls))