Automatically highlight user-defined text with Seek function (2019-09-22)
< Opinie na Text Highlight and Seek
Hi, what browser are you using, and which *monkey extension?
In Firefox with Violentmonkey, I would do this:
about:debugging#/runtime/this-firefox
kwstyles
One of the references will be in the source code, and the other will be in the JSON data for the script. You can double-click the data and "Copy" it and then paste it somewhere for future reference and probably some editing/importing, although I haven't thought through the steps. After safely saving your data somewhere else, you can delete the selected script data to return to default settings.
Editing JSON is a pain, but here's an example of a RegEx set from beginning (preceding comma) to end (closing curly brace) that you would want to excise from the structure:
,\"set108\":{\"keywords\":\".[\\\\r\\\\n]{1,4}To\",\"type\":\"regex\",\"hlpat\":\"\",\"textcolor\":\"rgb(0,0,255)\",\"backcolor\":\"rgb(255,255,0)\",\"fontweight\":\"inherit\",\"custom\":\"\",\"enabled\":\"true\",\"visible\":\"false\",\"updated\":\"2021-08-27T15:33:06.493Z\",\"prevkeyw\":\"content.[\\\\r\\\\n]{1,4}To\",\"prevtype\":\"regex\"}
OK. I was not able to do a simple fix, but thanks to you, I was able to copy all the information and do a reinstallation of the script.
Thanks.
Did it again but this time I can not seem to find the data.
Current FF and using Violent Monkey.
I looked at the data in the area you said and nothing shows the things I need highlighted.
OK. Took a break and came back and found it again. Thanks again for an excellent script.
I seem to have made an error in a regex and now the script crashes on page load. I can not access the highlight library to try and fix the error. Where is the location to the script library so I can go in and edit it out?