How can I override preformatted text, forcing text wrap on a web page?

2

Many web pages with fixed formatting do not fit on my screen without scrolling left to right. I suspect that in some cases the web page attempts to determine my screen width and adapt to it, but fails because I use a 125% or 150% zoom factor.

Some time ago, Opera had a simple command to override all preformatted line widths and force text scrolling, but I haven't found a general solution since then. I looked at the question How can I make Firefox word-wrap text/plain files? which had some answers for firefox, but both the extension suggested and the .css file seem to be out of date. I couldn't find any css files in my extension folder, so either they've changed it or I didn't understand where to look.

Ideally I would like a solution for Opera, but one for Firefox would be more helpful to the community and might be easier for someone to answer.

So, how can I force an unconditional text wrap to fit my screen in Firefox? Suggestions for any browser would be considered helpful, but an answer containing a solution for Firefox is preferred.

Bit Chaser

Posted 2018-09-09T20:21:23.710

Reputation: 163

Just FYI, some stackexchange sites have the problem. Super User is good now, but Space Exploration extends off right edge. Usually it's ok, because the main text remains on the screen -- at worst I right scroll once to position the main text in the middle. – Bit Chaser – 2018-09-09T22:45:45.680

Answers

1

Yes, it seems text wrap is nowhere to be found anymore, at least in Firefox. But it may not be Mozilla's fault entirely if a website forces their CSS on you, disregarding your FF Profile.

I am not so familiar with Opera but there is one suggestion, not ideal but a workaround for now: Select "View" and then 'Enter Reader View'. It may not give you any fancy boxes etc. - but you could at least read the website's text and content on a small screen.

To switch back is very simple: just click the left top button to restore the page to normal. I wish to have a better solution - hopefully, someone else may be able to know more.

Mediapuck

Posted 2018-09-09T20:21:23.710

Reputation: 26

I forgot to mention, if the website shows the option to select for mobile [the 3 or 5 lines] icon, you can switch temporarily to view in the mobile format. – Mediapuck – 2018-09-09T21:53:53.637

Ok, at first I didn't know where to look (and did not find this in the menu. But the help information told me there is an icon for that in the address bar. It works, and seems like a bit of an overkill, but it's easy to switch back and makes "walls of text" readable when it would otherwise be hopeless, so I will accept the answer if it appears there is no better one. I think I should still be able to override with css and I'm hoping someone will know how. – Bit Chaser – 2018-09-09T22:04:52.083