Skip to content

Instantly share code, notes, and snippets.

@eyecatchup
Created May 24, 2019 07:06
Show Gist options
  • Save eyecatchup/15f6509eda0f90f40ea428f7290c6d3d to your computer and use it in GitHub Desktop.
Save eyecatchup/15f6509eda0f90f40ea428f7290c6d3d 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