Questions tagged [browser-console]
60 questions
12
votes
1 answer
import or require any library in browser console
While debugging application most of the time I feel like it would hve easier if I could include any library into browser console and try some of the function from that libraty.
Now in modern javascript/es6/es6/typescript world is there any thing…

Aniruddha Das
- 20,520
- 23
- 96
- 132
7
votes
2 answers
Why does commuting the arguments of == in a console change the output?
If I open my browser console (tested in Chrome/Firefox) and type:
null == {}
I get:
false
However, if I commute both arguments to the == operator and instead type:
{} == null
I get:
Uncaught SyntaxError: Unexpected token ==
Image:
Why does…

Paul Benn
- 1,911
- 11
- 26
7
votes
1 answer
Access Greasemonkey/Tampermonkey variables from the browser console?
This is example of code from the userscript:
var ExampleObj = {
somevar1:'value1',
somevar2:'value2',
somevar3:'value3',
somefunction1:function(){
//do sth
},
somefunction2:function(){
//do sth else
}
}
And when I try to call…

Łukasz Rząsa
- 171
- 3
- 10
5
votes
1 answer
A way to stop WebSocket errors to show up in browser's console
So the problem is when I try to initiate a new WebSocket to a remote host, sometimes the browser's console prints a red error message and complains about a refused connection, here is the message:
Error in connection establishment:…

Chavoosh
- 425
- 4
- 15
3
votes
0 answers
How to capture "net::ERR_CERT_AUTHORITY_INVALID" in Angular Application to handle SSL certificate issue?
I need to capture "net::ERR_CERT_AUTHORITY_INVALID" in Angular Application to handle SSL certificate issue so that I can guide user to downloading install SSL certificate from a particular location but I am not able to find a way to get…

AMAN VYAS
- 31
- 4
3
votes
1 answer
no command line interpreter in Browser Console
According to this page https://developer.mozilla.org/en-US/docs/Tools/Browser_Console my browser console (Ctrl+Shift+j) should have command line interpreter but it doesn't. My browser is Firefox stable 69.0.3. Is this feature available only in…

niref
- 45
- 4
2
votes
1 answer
Can a browser's dev console continue executing JavaSript after a new page loads?
I'm trying to automate some online work through JavaScript and the Firefox (or Chrome) dev console. The work is mostly inputting the same (or similar) data on the same exact pages for many many people.
Example:
unique id
date 1 and 2
some more…

BadAtMaths
- 60
- 7
2
votes
0 answers
How to trigger Angular blur event from browser console?
I have some inputs that I'm trying fill using a Chrome snippet. The inputs that are bound to the component model using [(ngModel)]="myProperty" work great. Two of the inputs, however, only update the component model on blur (I want one-way template…

alexleen
- 125
- 1
- 2
- 8
2
votes
2 answers
How to run JavaScript code continously in browser console even after page reload
I am trying to run a JavaScript code, something like this document.getElementById('someID').innerHTML = ''; in a web browser console. It works fine until the page is refreshed or redirected to another page. Soon after the page refreshes the console…

Naveen Yamparala
- 43
- 6
2
votes
1 answer
Warning "It looks like you're using the development build of the Firebase JS SDK."
Currently I am getting a warning :
It looks like you're using the development build of the Firebase JS SDK.
When deploying Firebase apps to production, it is advisable to only import
the individual SDK components you intend to use.
For the CDN…

Abhishek Kaushik
- 67
- 2
- 11
2
votes
2 answers
Change a color code to another using JavaScript in browser console
I am a web designer.
When I browse web sites I like to change some colors and look at how site will appear when I change the primary color.
I do this using "inspect elements". But it is very time consuming work since I need to add lot of codes to…

I am the Most Stupid Person
- 3,415
- 9
- 22
- 48
2
votes
1 answer
Access WebExtensions API from the Browser Console
Is it possible? I'd like to experiment with some functions in a REPL.

user
- 23,260
- 9
- 113
- 101
1
vote
1 answer
Why doesn't JSON.stringify handle my array of arrays?
I read this question How can I copy an array of arrays into clipboard using javascript and want to achieve something similar: first I execute $x(XPath) to get an array of arrays:
I want to stringify this array but when I execute…

d-b
- 695
- 3
- 14
- 43
1
vote
1 answer
Show only errors in Firefox development console
Is it possible to show only 400 errors (or all errors) in the Firefox browser console?
There are usually a few hundred requests in a typical web page, most with 200 (OK) status. It'd save time by filtering those out to only display errors (400, 404,…

Dan Roberts
- 517
- 7
- 13
1
vote
1 answer
Clear browser console including 'Console was cleared' statement - JavaScript
I would like the console to be completly cleared whenever I call the console.clear() function
However, is there any way to remove the 'Console was cleared' text once that function has been run? I don't mind it normally, but in this case it would be…

Joachim
- 178
- 1
- 13