15 tricks to master Chrome Developer Tools Console

Поделиться
HTML-код
  • Опубликовано: 24 янв 2025

Комментарии • 126

  • @geilt
    @geilt 11 лет назад +5

    Excellent. Found some tools I didn't even know about myself. Thanks much for the fast and concise examples and speed of the video. I love your accent :)

    • @ThatJSDude
      @ThatJSDude  11 лет назад +3

      Thank you Alexander Conroy for your feedback. I am glad you liked it. Feel free to provide any kind of feedback

  • @janicknorman9396
    @janicknorman9396 9 лет назад +33

    Thumbs up if you set up the contentEditable right away.

    • @juniorknabel5940
      @juniorknabel5940 8 лет назад

      yep

    • @alejandroloubes8578
      @alejandroloubes8578 5 лет назад

      just type in browser bar:
      javascript:document.body.contentEditable = true
      and make everybody freak with the news 😂

  • @JohnMcCaffrey
    @JohnMcCaffrey 11 лет назад +1

    wow! You really covered a lot, and with nice clean examples. Bonus for doing a recap at the end, it really makes the info stick for the user.

  • @nadranaj
    @nadranaj 9 лет назад +1

    Best and most informative video on web programming I ever saw. Excellent tips.

  • @BjoernBeckmann
    @BjoernBeckmann 11 лет назад +1

    Hey thank you for the tips. Especially the posibillity of using "getEventListeners()" I didn't know. But I still don't get the expected result. I thought I would get any function listening for example for an "click" event for the given element. If I write a function listening for an click event I can't find it in the result. Is it not possible? Thx! Great work!

    • @ThatJSDude
      @ThatJSDude  11 лет назад +1

      It depends how you are binding the the event listener to the element. for example if you use native JS without any library. similar to the one i have talked in this video, if i add a event listener like
      $('#myInput').addEventListener('click', function (){ console.log('clicked'); } )
      getEventListener( $('#myInput') ) will return an object. If you expand click and first object and then listener you will get the function you have written.
      For my example here, if i type following line in console.
      getEventListeners($('#myInput')).click[0].listener
      > function (){console.log('clicked');}
      If you use library like jQuery, your actual code for click handler would be burried under their wrapper functions. Does this answer your question?

    • @BjoernBeckmann
      @BjoernBeckmann 11 лет назад

      Thx! That's a perfect answer. In almost all of my projects jQuery is used. That's why I could not find those listeners. Thank you very much! :)

    • @ThatJSDude
      @ThatJSDude  11 лет назад

      You can certainly get those. you have to dig little more with the help of JQuery source code. Event listener subTab (right side) in the Element tab does not do the best job as of today as it points to the Jquery library. I am sure someday Chrome will be smart enough to point to your code rather than library.

  • @ahmedsojol8990
    @ahmedsojol8990 5 лет назад

    how i supposed to change value of ajex permently..cz the value is vanishing after refreshing page

  • @gitturajkoti2202
    @gitturajkoti2202 7 лет назад

    sir please tell me what is console warning messages how can we deploy on active browser page

  • @jamesallen74
    @jamesallen74 10 лет назад

    Good video. These are a part of 2 APIs found in Chrome (and Firebug in Firefox I believe). The Console API is an API that lets javascript call special console function. The Command Line API is available in the command line only. These are not (I don't believe) native javascript functions, but just a set of APIs added on top of the Chrome DevTools app.
    So Chorme has Dev Tools, Dev Tools has two APIs that enhance it, and there are also extensions you can add to DevTools.

  • @samppaak5274
    @samppaak5274 3 года назад

    Awesome video! (timestamp ignore: 3:10)

  • @gitturajkoti2202
    @gitturajkoti2202 7 лет назад

    [Deprecation] 'webkitURL' is deprecate, pleae use 'URL' instead. how can we deploy this tipe of console warning message on my computer web browser chrome or opera

  • @ErikAdalbertvanNagel
    @ErikAdalbertvanNagel 8 лет назад

    can i get hidden e-mail addresses what normally can't show from website accounts with this console?? for example interpals

  • @alobpreis
    @alobpreis 9 лет назад

    Why does getEventListeners only return a few of the listeners? When you go to the Elements tab / Event Listeners tab, you get a lot more (those you saw when you monitored the events). Is it possible to get the complete list?
    Thanks! Great video!

    • @alobpreis
      @alobpreis 9 лет назад

      alobpreis I just found a way:
      var el = $('input');
      while (el) {
      console.log(el, getEventListeners(el));
      el = el.parentNode;
      }
      This code was inspired in this answer:
      stackoverflow.com/a/18592554/2321042

  • @TtEL
    @TtEL 8 лет назад

    how do i use the postmesage command

  • @timr1810
    @timr1810 7 лет назад

    I work in QA, trying to get better to use devtools console. I $('#id').click() a lot to see if I have correct locator for buttons. Id like to be able to "moveToElement", but I don't know how ... $('.someclass').moveToElement() ... i know this is wrong but what is the correct way? thanks

  • @hariteja999
    @hariteja999 7 лет назад

    how to enter values in authentication popup from a console?

  • @maaniiftikhar5759
    @maaniiftikhar5759 7 лет назад

    How to use console to know your screen position??

  • @tirtha9
    @tirtha9 7 лет назад

    How can we trace back functions that resulted in an XHR request

  • @mattcoakes5682
    @mattcoakes5682 5 лет назад

    Great tips, concisely explained. Great vid

  • @farhan_jiwani
    @farhan_jiwani 11 лет назад +3

    Wow the events one I had no idea about!

    • @ilovegsus
      @ilovegsus 11 лет назад +1

      wow this is awesome fars! i didnt even know you can type stuff in the console window hahahaha

    • @farhan_jiwani
      @farhan_jiwani 11 лет назад

      Haha

  • @balunew456
    @balunew456 11 лет назад

    In my chrome almost all the console methods are throwing 'undefined'... even console.log('That JS dude') is not getting prompted!!! What version of chrome you are using, my is 'Version 31.0.1650.63 m'. How to resolve this issue!!!
    BALA

    • @ThatJSDude
      @ThatJSDude  11 лет назад +1

      In your dev tool, at the bottom there is a filter icon (funnel), click on the filter icon and make sure "logging" option is checked. Most likely that is not checked. You can check all the five options (javascript, css, network, logging, other) and try again. If that doesn't work, please let me know

    • @balunew456
      @balunew456 11 лет назад

      That JS Dude Thanks you very much for your quick response. All the filters are already selected in my tool. I found that only in "ThatJSDude" few console methods are not working. I tried few other site, the console options are working fine in those pages.
      BALA

    • @ThatJSDude
      @ThatJSDude  11 лет назад

      balunew456 I would recommend to type "console.log" in the console and see what it returns, if it returns something like "function log() { [native code] }". Then settings is not in right place. However, If it happens to one particular site then might be overwriting console.log = function(){} something like this. I was wondering when you say, you found it on "ThatJSDude", do you mean you found it on "ThatJSDude.com" or anywhere else. Just curious

    • @balunew456
      @balunew456 11 лет назад

      That JS Dude
      Yes in "thatjsdude.com/" page console i am facing this issue.
      >console.log
      function (){return f.apply(c,arguments);}
      >console.log('test')
      undefined
      Problem:: 'test' is not getting printed.

    • @ThatJSDude
      @ThatJSDude  11 лет назад +1

      balunew456 Yah, console.log is getting override, I dont see the same thing for console.log, when i go to the site and i didn't use any such thing in the site. And i searched the uploaded content, i dont have anything that override console.log.
      It could happen, any of the browser extension (if any), might inject it. But that become suspicious as you are experiencing this issue only for one site.
      I will take the opportunity to explain what might be happening. console.log is trying to apply "f" function for "c". if you just type "f" and "c" separately in the console that will tell us what are "f" function and "c" objects are.
      And since "f" function dont return anything which it should arguments. Alternatively you can override "f" and f = function(){return arguments; }
      you might see an array in the console.
      Sorry for long answer.

  • @avishek_ataur
    @avishek_ataur 3 года назад

    আহেম ! This is আমাদের গুরু 😁💜

  • @RahulSingh-gw5qv
    @RahulSingh-gw5qv 4 года назад

    Thanks very much, beautiful content

  • @ib4ranapagod438
    @ib4ranapagod438 5 лет назад

    What happened if I do this

  • @G11713
    @G11713 9 лет назад

    Excellent delivery!!

  • @alexanderfrize
    @alexanderfrize 9 лет назад +6

    Awesome!!!
    Special thanks for document.body.contentEditable = true!

  • @JemYAderson
    @JemYAderson 8 лет назад

    How to bypass /?a=withdraw&say=daily_limit :/ help i m stuck

  • @ihalimhalimi
    @ihalimhalimi 7 лет назад

    hello sir
    The link below belongs to my application page. www.konsolosluk.gov.tr/Appointment/SearchAppointment
    is there any way to change the time of the application via developer mode ?

  • @Андрей-п8т4ч
    @Андрей-п8т4ч 9 лет назад +2

    for(var i=50;i--;){
    console.error(i)
    }

  • @monodeeproy4939
    @monodeeproy4939 6 лет назад

    awasome post....give more this kind of browser js tricks

  • @JigarNavadiya
    @JigarNavadiya 10 лет назад

    getEventListener and monitorEvents are not working on my chrome browser.

  • @FabrizioFortunatoFortune
    @FabrizioFortunatoFortune 11 лет назад

    Nice video with really great tips

  • @thirumaleshwarratna286
    @thirumaleshwarratna286 4 года назад

    thank you very much for making pdf for this video

  • @anbuanbu6591
    @anbuanbu6591 6 лет назад

    How to restrict jQuery Ajax call from browser console window

  • @elfpimp1
    @elfpimp1 7 лет назад

    @That JS Dude. I was hit by ad IED in Afghanistan and it's messed with my short term memory. I can remember some things but not always others. Do you have any tips for remembering these things? ?

    • @ThatJSDude
      @ThatJSDude  7 лет назад +1

      It will highly depend on things type of the things you can remember and find a pattern on that and embed new things slowly in to the pattern that works. Besides using few tools will help you to improve your situation. Any generic solution might not be effective...however, if you are open to a discussion, we can talk and see whether i can build some custom technique for you. feel free to reach out: khan4019@gmail.com

    • @elfpimp1
      @elfpimp1 7 лет назад

      That JS Dude thank you VERY much!! $

  • @kiranbhirde2985
    @kiranbhirde2985 8 лет назад +1

    very helpful video..thanks a lot bro

  • @RahulRaj-cg6jp
    @RahulRaj-cg6jp 6 лет назад

    Very helpful. Thanks for this guide.

  • @parky607-j8p
    @parky607-j8p Год назад

    good video it is very help full for me

  • @amiramirmansoury2097
    @amiramirmansoury2097 10 лет назад

    wow - learned so much in so little time. Thanks.

  • @tsuyoshi4226
    @tsuyoshi4226 10 лет назад

    Useful and great video. Thank you.

  • @ziajunaidi2023
    @ziajunaidi2023 10 лет назад

    not able to getEventListener to work

    • @ThatJSDude
      @ThatJSDude  10 лет назад +2

      Make sure, you have typed "getEventListeners" not "getEventListener" (last "s")
      and then make sure you are passing right querySelection/ css selectors
      and make sure you are trying it in chrome...
      If these doesnt help, share your html, javaScript and the console code you are writing

  • @Андрей-п8т4ч
    @Андрей-п8т4ч 9 лет назад

    console.groupCollapsed('texture');
    console.error('К сожалению, анкета удалена')

  • @Андрей-п8т4ч
    @Андрей-п8т4ч 9 лет назад

    console.groupCollapsed('texture');
    console.error('К сожалению, анкета удалена')
    console.groupEnd()

  • @MrRavinderKumar
    @MrRavinderKumar 11 лет назад +2

    Awesome video. keep it up :)

  • @trumank9363
    @trumank9363 10 лет назад

    this is great. please make more videos

  • @theoogle3756
    @theoogle3756 3 года назад

    You could just do document.designmode='on'

  • @ananthsview8034
    @ananthsview8034 8 лет назад

    Amazing video, very help full thanks a lot man ..!

  • @McGavel1
    @McGavel1 9 лет назад

    Man, this is cool stuff! Thanks.

  • @mdeekshitulu
    @mdeekshitulu 8 лет назад

    Really cool stuff, thanks a lot.

  • @Андрей-п8т4ч
    @Андрей-п8т4ч 8 лет назад

    console.groupCollapsed('0');
    console.error('0')
    console.groupEnd()

  • @shemofd6949
    @shemofd6949 8 лет назад

    Thanks , this is very useful

  • @DaniloSouzaMoraes
    @DaniloSouzaMoraes 8 лет назад

    very useful. Thanks!

  • @shashikant6989
    @shashikant6989 10 лет назад

    Really excellent things which I don't know before seeing this video :)
    Q. Is there any trick to know which complete function is apply on selected HTML element? Just like CSS, we can know what properties apply on the selected HTML element.
    This is my humble request to you, if you don't know about this please find for me, I will always grateful to you.

  • @Андрей-п8т4ч
    @Андрей-п8т4ч 8 лет назад

    console.error('0')

  • @faisalrehmanqureshi
    @faisalrehmanqureshi 10 лет назад

    Very good

  • @Boyyce
    @Boyyce 11 лет назад +6

    HOLD DIS BABAY, hahahaha

    • @ThatJSDude
      @ThatJSDude  11 лет назад +2

      glad u noticed. that the only not so serious part

    • @Boyyce
      @Boyyce 11 лет назад +2

      That JS Dude haha seriously crack up all the way through, are you intentionally being funny? Best tutorial ever haha

    • @ThatJSDude
      @ThatJSDude  11 лет назад +3

      I put jokes aside for this one. Though i used couple more in my previous video about JavaScript this. If i found some jokes in a serious video that helps me to complete the video.

  • @HagbardCelineOnRust
    @HagbardCelineOnRust 10 лет назад

    thx for advice

  • @thunderpop20
    @thunderpop20 9 лет назад +6

    ?

  • @vatansoni6439
    @vatansoni6439 8 лет назад +1

    Thanks ...

  • @Андрей-п8т4ч
    @Андрей-п8т4ч 8 лет назад

    function off{
    console.warn('Off');
    }

  • @Instaband
    @Instaband 6 лет назад

    nowadays $('a')===document.querySelector('a') is
    false but it's still making the same think

  • @laidoyagamii888
    @laidoyagamii888 7 лет назад

    very helpful.

  • @T3mas1
    @T3mas1 6 лет назад

    I need somebody to safe my life. I need my Chrome to do the following: start every new sound with decreased volume (with no volume at best) that goes up gradually. PLEASE HELP ME! I am begging you!

  • @faridul.hassan
    @faridul.hassan 10 лет назад

    Very helpful for me.
    Thanks

  • @alokranjan476
    @alokranjan476 7 лет назад

    Too Good....

  • @lupitchr1
    @lupitchr1 7 лет назад

    'Hold this baby' BWHAHAHAHAHAHAHAHAHAHAHA!

  • @nkline1281
    @nkline1281 10 лет назад

    This is great info, thank you! After watching, I didn't want to forget this stuff, so I started typing up for future reference...then I found you already did on your website: thatjsdude.com/jsConcepts/concepts/console.html
    You should really link to it in the description! Thanks again.

  • @an90000
    @an90000 9 лет назад

    awesome...Thanks! very clear

  • @shwetamohanty190
    @shwetamohanty190 3 года назад

    Programming hero

  • @unfamiliarrez
    @unfamiliarrez 4 года назад

    CTRL + SHIFT + I

  • @TotalNinjaGaming
    @TotalNinjaGaming 10 лет назад +1

    I scammed target by editing a price on amazon to 9.99 and price matched

  • @tsrgames5669
    @tsrgames5669 7 лет назад

    I don't know why but I have a weird feeling I'm being scammed

  • @RahulVerse-10
    @RahulVerse-10 Год назад

    Hello sir

  • @fellifel147
    @fellifel147 8 лет назад +4

    Just get lost and help d economy :) lmao

    • @SwethaSaravanan
      @SwethaSaravanan 3 года назад

      I didn't understand what he meant by that

  • @strataburn1
    @strataburn1 10 лет назад +1

    Subtitles are hilarious

    • @alobpreis
      @alobpreis 9 лет назад

      Ryann Paqueo ROTFLMAO!!!!!!

  • @junaidtanoli1
    @junaidtanoli1 10 лет назад +1

    #chrometools

  • @mominahmad5575
    @mominahmad5575 6 лет назад

    if only you had a good mic

  •  7 лет назад

    Hi, excelent video!!
    How do I make it through the console that all tags expand? Since to give in Expand all, not all expand.
    See:
    prntscr.com/f9hxgy

  • @SwethaSaravanan
    @SwethaSaravanan 3 года назад

    isn't his way of speaking very bad? He said, "just get lost", "if you are lazy",

  • @therealsanitytm3621
    @therealsanitytm3621 7 лет назад

    Works on roblox thx me later

  • @adnanrashidkhan9946
    @adnanrashidkhan9946 7 лет назад

    fc of

  • @balveermurki8727
    @balveermurki8727 7 лет назад

    tooooo fast

  • @suspasta4542
    @suspasta4542 5 лет назад

    scam hes indian

  • @eituftufk3364
    @eituftufk3364 8 лет назад

    pls dont tell me that ur indian? xD

  • @FabrizioFortunatoFortune
    @FabrizioFortunatoFortune 11 лет назад

    Nice video with really great tips