-1

I do often have to look at long plain text log file in browser and I find hard to spot the error message in that amount of text.

Most error messages are easily identifiable using regular expressions. I have being using this trick to highlight important text in iTerm2 for years.

Now the interesting challenge is how to bring the same feature to the browser?

I mention that I need to be able enable this feature per domain as it may have undersirable side effects on others.

A cross browser solution would be ideal but I am ready to switch browser (Safari, Chrome, Firefox).

sorin
  • 161,544
  • 178
  • 535
  • 806

2 Answers2

0

I know of GreaseMonkey for Firefox which allows you to inject javascript into a webpage. I'm not familiar with who you create scripts to use with it but perhaps you could match the messages using regex. Not sure how you'll highlight a plain text file using it though.

shreyasminocha
  • 550
  • 3
  • 14
-1

You can easily develop an Extension which will inject a CSS file on whichever webpage you want. Now, in this CSS file you will need a pseudo selector(Do all the text elements have same class or other attribute?). You need to figure this out yourself. Once you have hold of all these elements you can add a CSS rule to change their color to whatever you like.

WarPro
  • 350
  • 3
  • 5