Chrome Javascript console defaults to the wrong context [duplicate] - javascript

This question already has an answer here:
Google Chrome default console context
(1 answer)
Closed 6 years ago.
The context of my Chrome Javascript console always defaults to some random Chrome extension (apparently a different extension each time). Can I force it to default to the top window?

This issue already reported as bug in Chrome. So you can check issue status in official bug tracker.

Related

How can I know that the Firefox Developer tools are open with Javascript? [duplicate]

This question already has answers here:
How to detect if browser console / inspector is *open*?
(3 answers)
How do you detect if firefox DevTools is open? [duplicate]
(1 answer)
Closed 3 years ago.
I need to find a certain indications to detect whether or not Firefox Developer tools are open for the site I placed in. It has to be done with vanilla JS in the client side scope.
I found many indications for Chrome browser, but couldn't find even one stable way for Firefox.
Thanks

How to create a pop under window behind main window in chrome? [duplicate]

This question already has answers here:
Making a window pop under in chrome
(8 answers)
Closed 7 years ago.
I want to open a pop-under window on click, but I want to open it behind the current window.
I google this and found nothing useful about my problem.
Is there a way to do it?
Perhaps a simple path setting is what you need. Use this within a javascript sequence:
path = window.document.URL;
window.open(path,"_self");

Chrome thinks my desktop computer is a touch device? [duplicate]

This question already has answers here:
Modernizr reporting laptop as touch device in Chrome and FF
(1 answer)
How to test for Touch-Events now that Chrome fails standard tests?
(1 answer)
Closed 8 years ago.
Spontaneously, for myself and my coworkers, Modernizr has started telling us that we're on touch devices when we're very much not on touch devices.
Why is this happening to all of us? Has anyone else seen this? Google turned up nothing. How can I fix it?

is there a way to open the f12 with a script? [duplicate]

This question already has answers here:
How can I open the Google Chrome Console from JavaScript? [duplicate]
(3 answers)
Closed 8 years ago.
Well guys,
I am new with javascript, and i have a problem. Exist a script in Javascript that can do virtually what the f12 key does? Just open the console without pressing the f12 key.
With pure JavaScript, running in the brwoser itself, this is not possible.
If you want to do it with an extension, yes it can be done:
This is the documentation for Chrome: https://developer.chrome.com/extensions/devguide.html
This is the FireFox add-on guide: https://developer.mozilla.org/en-US/docs/Firefox_addons_developer_guide

Setting current page as homepage [duplicate]

This question already has answers here:
How can I set default homepage in FF and Chrome via javascript?
(7 answers)
Closed 9 years ago.
I searched the web in order to find a code for a button what sets current page to homepage - but found nothing usefull.
Does anyone have this code?
Thanks all
I asume you are not asking how, you as the user of the browser, to set the homepage; this might be useful: https://stackoverflow.com/a/10751061/2612112.
Only old versions of IE support this.

Categories