I am writing an extension to provide grep'ing functionality in Firefox. At my workplace, we access all the log files using a browser, and the grep function is ideal for filtering results, looking only at certain levels of logging (INFO, WARN, ERROR), etc.
Sets the extension pattern.
I wonder if I can get hints for the right javascript. Am after function:
function grepPage(regex){ ... }
which would apply a regular expression to each line of the loaded text file in firefox and modify the loaded text file to display only lines that match.
This is the type of thing that I could spend years trying to figure out when I'm sure there will be easier ways to do this.
Any help would be greatly appreciated.
Cheers, Ben
Ben
source share