How can I filter errors by the first line of the stack trace?

The first line in stack trace is something like:

Cannot read property ‘appendChild’ of undefined TypeError: Cannot read property ‘appendChild’ of undefined\n at HTMLDocument. (chrome-extension://XXXXXXXXXX/YYYYYYYYYY.js:1111:11

I don’t care about error that are not originated in XXXXXXX. I want Sentry to track only these. How can I do that?