Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide chrome-extension: in "Developer Tools" Scripts tab

When I debug javascript-code in Chrome I use the Scripts tab in the Developer tools. In the list of scripts(the drop-down) a lot of extensions are listed on this form:

  • chrome-extension://lfhsdjklfhaslkfhuwklshdfjkash/path/to/script.js
  • chrome-extension://lfhsdjklfhaslkfhuwklshdfjkash/path/to/another/script.js
  • and so on

I've got around 20-30 such lines and that is pretty annoying when I just want to see my own scripts.

Is it possible to hide these lines but keep the scripts from the current web page?

like image 433
Peter Jaric Avatar asked Jun 29 '11 08:06

Peter Jaric


People also ask

How do I disable developer mode extensions popup?

The official way to disable the popup is this: Pack your extension: go to chrome://extensions , check Developer mode and click Pack extension. Install the extension by dragging and dropping the . crx file into the chrome://extensions page.


1 Answers

Chrome now has built in user profile support. Create yourself a new profile with the extensions you need: https://support.google.com/chrome/answer/2364824?hl=en

The first option will be to disable all your extensions... not so cool...

If you find the chrome-extensions scripts very irritating, you can create yourself a developer profile with no extensions (or a minimal set of extensions) for debugging your scripts. Explanation for windows:

  • Duplicate your "Google Chrome" shortcut (by ctrl+dragging it)
  • Rename the new shortcut to "Chrome Dev Profile".
  • Right click it -> Properties
  • (Choose a path for your profile dir. You don't need to create it. For example: c:\users\udi\profiles\chromedevprofile )
  • Add to the "Target" field, following the path to chrome.exe:

    --user-data-dir=c:\users\udi\profiles\chromedevprofile (with your path of course).

  • Launch it (and grab a coffee or wait a minute or so for the hamsters).

  • Now you have a second chrome profile running. You will see there is no history, bookmarks, extensions etc. Don't panic, you still have all of them in your normal profile.
  • Optional: You would probably want to change the way this chrome looks to get a bit confused. Install a theme from here: https://tools.google.com/chrome/intl/en/themes/index.html
  • Use this profile for debugging. :-)
  • (You can also keep your debugging bookmarks in the bookmark toolbar for easy access without disturbing your regular bookmarks toolbar. Same for debugging oriented extensions.)
like image 89
Udi Avatar answered Sep 19 '22 14:09

Udi