Questions tagged [google-chrome-console]

The Console of the Google Chrome browser is part of it's developer tools and debugger. Use this tag when asking questions about the Console API and it's usage.

Console is an integral part of Javascript debugging when done in Google Chrome. It offers the user a command line interface to execute Javascript expressions. Also it provides a logging interface to programmers who wish to log debug messages while executing a script.

The Console API provides web applications with methods for writing information to the console, creating JavaScript profiles, and initiating a debugging session.

You can find Console API reference here.

144 questions
2
votes
1 answer

fun-hooks: referenced 'registerAdserver' but it was never created

I am using adinplay and their advertisement library in my site. It is creating noise in my console. Can I fix this problem? If not what can I do about this log?
demiculus
  • 1,243
  • 1
  • 12
  • 32
2
votes
2 answers

Input form from javascript console Chrome

I try to use Chrome console to input form Username and Password on this website: https://ucp.nordvpn.com/login/ but when click button Log in. It shows error "Username cannot be blank" Please help me. Thank you // Input prompt format…
denmodo
  • 41
  • 3
2
votes
3 answers

Trying to get Inner Elements using chrome console javascript/jquery

Hi I am trying to get Inner Elements using chrome console, but it throwing me an error , Here is my code snippet . Any Workaround will really help me to get elements and automate it. I have attached a screenshot of a common website When I do this I…
2
votes
1 answer

Angular http request time in interceptor

I'm making an interceptor to log my http requests. So far, so good, everything is working as expected. What I want now is to get the time the request took to be executed. I thought I could do something like this const start = Date.now(); return…
user4676340
2
votes
2 answers

What is the type of the key in this JSON object {yourVariable: "nothing yet"}

Chrome Developer Console is console.loging this: Your JSON sent is>> {yourVariable: "nothing yet"} So i know the value "nothing yet" in the {yourVariable: "nothing yet"} JSON object is a string. But how do I know the type of the key…
BB-8
  • 565
  • 2
  • 9
  • 18
2
votes
1 answer

When did the $ become natively available to the console?

I know the $ is part of JQuery's lib and I am surprised that it exist as an object in the browser console. (I'm not sure if it's just my environment) but I can do.. $('#id') to get the dom id of an element. Where I have been always using…
Jonathan002
  • 9,639
  • 8
  • 37
  • 58
2
votes
0 answers

Doing `F; class F{};` makes `F` both an undefined variable, and an already defined identifier. Is this a bug?

Doing F; class F{} on the chrome console gives a reference error (F is not defined), but after that, doing class F{} again yields Identifier 'F' has already been declared, while F; yields a reference error (even typeof F gives a reference…
YoTengoUnLCD
  • 600
  • 7
  • 15
2
votes
1 answer

Debugging a script added via Chrome Console

I am adding some JavaScripts via Chrome's devtools' console by simply just pasting a set of code. There is no way to open that code on the Sources panel so I can debug using breakpoints. Is there a proper way to open the code on the Sources panel…
Suthan Bala
  • 3,209
  • 5
  • 34
  • 59
1
vote
1 answer

How to change the value of an element nested inside two iframes through chrome console?

I have an element that is in an iframe and that iframe is in another iframe, so they're nested. I want to change the value of it, but I can't do that since I don't think chrome console can find…
1
vote
1 answer

"var" isn't working when in addEventListener or my code just executing first

I was working on discord to test something about the bot commands. When I click on the command this code should be able to set tooltip and the parts in it but the code executes before the command one. var commands =…
Onieone
  • 21
  • 3
1
vote
1 answer

HTML JS Open new window with console in google chrome

This is client-side HTML. I'm just using HTML for automation. My initial goal was to open a new window https://live.ipms247.com/login/ and then paste the values in the three login fields. All three fields have ID tags. And I can write to them from…
DannyBoi
  • 636
  • 1
  • 7
  • 23
1
vote
0 answers

What is the difference between {...} and Object when logging data in the Chrome console?

I was just logging some user data in the Google Chrome console and the console was rendering the data for different users differently. When the user object is closed, some users are rendered as {...} and some users are rendered as Object. When I…
Jon_B
  • 969
  • 4
  • 16
  • 24
1
vote
3 answers

Chrome Console logging elements in different formats

When i use Chrome Dev Tools to console.log an element it gets printed in two different formats. It randomly switches between the two formats when i refresh the browser.

Heading