Fireship · @fireship

21+ Browser Dev Tools & Tips You Need To Know

Uploaded July 12, 2021 · Length 9:26

21+ Browser Dev Tools & Tips You Need To Know

Summary

Learn 21+ browser dev tools and tips to make your life easier as a web developer, covering Chrome, Firefox, and more.

  • browser dev tools
  • chrome dev tools
  • firefox dev tools
  • web development
  • debugging
  • javascript
  • css
  • html

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    on the internet you'll find scammers who

  2. 0:01

    show off their massive bank account

  3. 0:03

    balances while they try to sell you a

  4. 0:05

    course on how you can get there too

  5. 0:06

    but there's actually an easier way to

  6. 0:08

    grow your bank account open up the

  7. 0:09

    browser console with ctrl shift j

  8. 0:12

    then execute this line of code to turn

  9. 0:13

    the document's design mode on

  10. 0:15

    we can now modify any text in the web

  11. 0:17

    page itself like the bank account

  12. 0:19

    balance

  13. 0:19

    as developers we tend to take a lot of

  14. 0:22

    technologies for granted one of which is

  15. 0:24

    the web browser

  16. 0:24

    not only is it one of the most important

  17. 0:26

    technologies for all of humanity but

  18. 0:28

    modern browsers contain all kinds of

  19. 0:30

    awesome developer tools that were

  20. 0:31

    unimaginable 10 years ago

  21. 0:33

    in today's video we'll look at a ton of

  22. 0:35

    features and tricks in your browser's

  23. 0:37

    dev tools that you probably didn't know

  24. 0:38

    exist and will make your life much

  25. 0:40

    easier as a web developer

  26. 0:42

    first like and subscribe to keep this

  27. 0:43

    content coming then add your own pro tip

  28. 0:45

    to the comments and i'll pick one of

  29. 0:47

    them to win this free t-shirt next week

  30. 0:49

    i'm going to focus on chrome dev tools

  31. 0:50

    in this video but firefox also has an

  32. 0:52

    awesome suite of dev tools and most of

  33. 0:54

    the tricks i'll show you

  34. 0:55

    apply to both browsers and if you use

  35. 0:57

    edge or brave they're both based on

  36. 0:59

    chromium so everything applies there as

  37. 1:01

    well

  38. 1:01

    and if you use safari or internet

  39. 1:03

    explorer may god help you

  40. 1:04

    first we need to open up the console

  41. 1:06

    which we can do with the ctrl shift j

  42. 1:08

    shortcut what you may not know

  43. 1:10

    is that chrome has a command palette

  44. 1:11

    just like vs code that you can access

  45. 1:13

    with control p

  46. 1:14

    type an angle bracket and that will give

  47. 1:16

    you a list of every command

  48. 1:17

    at your disposal in the dev tools a

  49. 1:19

    useful one especially if you want to

  50. 1:21

    show off your bank account

  51. 1:22

    is screenshot which allows you to

  52. 1:24

    screenshot an entire page

  53. 1:26

    a custom area or an individual dom node

  54. 1:28

    but if we go ahead and open up the

  55. 1:30

    command palette again

  56. 1:31

    you'll notice it provides a big list of

  57. 1:33

    files these files are the actual html

  58. 1:36

    css

  59. 1:36

    javascript and images loaded by this

  60. 1:38

    webpage

  61. 1:39

    when you click on one it takes you to

  62. 1:41

    the sources tab where you can actually

  63. 1:43

    edit and inspect the file

  64. 1:44

    in production it's likely minified so

  65. 1:46

    click the pretty print button to make it

  66. 1:48

    look nicer but here's something you

  67. 1:50

    didn't know

  68. 1:50

    in the bottom right corner you'll see

  69. 1:52

    the option for coverage which will bring

  70. 1:54

    up the coverage panel and this will tell

  71. 1:55

    you exactly how much your javascript or

  72. 1:58

    css is contributing to the visual