Long strings that begin with 'http' truncated



A has ellipsis when string is 121 chars or more. Is this removable? I hack by adding underscore to start of string, so I get the full url/file name. I could add an invisible unicode char. But why do I have to?

If you hover the link, you can see the full string
And if you want to copy the string, you should be able to right click on the link and select copy link location

would that be enough? Or you’d prefer not to have the truncation at all?

I prefer to not have the truncation at all.

I use the console to webscrape. I recently was trying to scrape a page and it had ~3100 items/nodes I was printing to the console. Seems like that takes a lot of memory? Usually I just push the info into an array and print it at the end - far faster.

FF 85 - this file is pretty dangerous -> It is an obfuscated javascript file. It is dangerous to the mind as well as the software. I tried to paste it in the console to try the new pretty print expression button. But the file weighs 4.31Mb. I wonder if the console can be protected from those large files. Or is the problem because it is 1 long line? I tried the file in textpad and tried to change the semi-colons to semi-colons and new lines via a regular expression. Textpad choked and I had to stop the prog. Amazingly, Emedit could do what I wanted. Firefox choked.

I guess you want to get the result of your “print” to the clipboard, to paste it somewhere else? There is the “copy()” helper in the console, which will put the raw content of the string in your clipboard.

Going back to your initial example, adding copy(a); will fill your clipboard with the full URL. Hope this helps.

This works on just one string. I usually have a series of lines I need to copy. Firefox has stopped the automated use of the clipboard in the console and elsewhere. So, I have to hack it. Right click on the lines in the console output pane only would allow ‘copy link location’ to copy the whole string without truncation. This(‘copy link location’) only works on a single line/object.

This works on just one string.

You can use \n to create line separators inside a single string.
Assuming your lines are in a lines array: copy(lines.join("\n"));

I think this should be considered as a bug. Please read my question on SO: https://stackoverflow.com/questions/74932987/firefox-shortens-urls-in-console-with-dot-dot-dot

If Firefox wants to truncate console entries for better visual presentation, it has to copy the actual original entry for right click’s “Copy Message” and “Save all messages to file” options. Console is very devs and they use it for seeing things “as they are” and shortening them is not helpful at all.
At least, there should be a config option to turn this on/off and in my option it should be off by default…

I think this should be considered as a bug

We have the following bugs filed: