Open a new Search pane in Developer Tools by:
- pressing Ctrl+Shift+F (Cmd+Option+I on mac)
- clicking the overflow menu (⋮) in DevTools,
- clicking the overflow menu in the Console (⋮) and choosing the Search option
You can search across all your scripts with support for regular expressions and case sensitivity.
Click any match to load that file/section in the scripts panel.
Make sure ‘Search in anonymous and content scripts’ is checked in the DevTools Preferences (F1). This will return results from within iframes and HTML inline scripts: