Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save martin12333/63f3e4e7903716260610eb85c720cac0 to your computer and use it in GitHub Desktop.

Select an option

Save martin12333/63f3e4e7903716260610eb85c720cac0 to your computer and use it in GitHub Desktop.
Search Chrome Devtools history

Search Chrome Devtools history

  1. Undock the console (click on the icon in the bottom-left corner, undock icon).
    (if you don't see the undock icon, but , then hold the mouse pressed for a few seconds to get the desired icon)
  2. Press Ctrl + Shift + J to open the console for this console. (On OSX use Cmd + Option + i)
  3. Use the following snippet to get an array of matches for your search term:
const searchHistory = query => {console.dir(JSON.parse(localStorage.getItem('consoleHistory')).filter(function(item){ return ~item.indexOf(query);}))}
searchHistory('token')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment