Optimize the code by isolating matchResult sub-functions. Rework 'type:' syntax.
Optimize the code by isolating matchResult sub-functions. Rework 'type:' syntax.

danny0838/firefox-scrapbook,danny0838/firefox-scrapbook