How do I know if Chrome open debugger(F12)? - google-chrome

I want to know whether the debugger mode F12 is turned on in Chrome. Most methods use JavaScript, but it is not suitable for me, because I want to check it from another running app on my pc. Are there other characteristics to identify? Such as special file operations.

Related

How to run Unsafe and Normal instance of Google Chrome at the same time?

I am doing some web development and am serving some files locally. Now both Chrome and Firefox wont allow me this because of their origin policy. As I prefer Chrome, I chose to to use it in unsafe mode by adding the --disable-web-security flag.
While this works perfectly, there is a slight issue I am facing. I can't run the chrome instance in unsafe mode while my another chrome instance is running in normal mode. If I open new instance by opening the unsafe mode chrome shortcut whilst my regular instance is running, the new instance also opens in regular mode; and vice-versa.
Is there a way to open both simultaneously? If so, how do I achieve this?
PS: I will use two different browsers for this as my last option. I would like to avoid this as far as possible
I found the answer on a Linux SuperUSer forum at
https://superuser.com/questions/593726/is-it-possible-to-run-chrome-with-and-without-web-security-at-the-same-time
I earlier thought this could only be done in Linux but this is also possible in Windows. Essentially we are asking a chrome to create a new instance altogether than sharing the same instance. We do this by giving it a location to store it's data. You can read about this in the above shared link.

Can Chrome DevTools preferences be set automatically, or imported?

I've been experimenting with using Chrome DevTools as my primary authoring tool, and am now mostly using them.
As I continue to increase my usage, I'm running into some pain points.
Usually, when I begin working on a project, I now create a dedicated Chrome profile for it. I do this automatically by invoking Chrome with the --user-data-dir flag and storing the browser profile right within the project.
Then I go into the tools, set up my workspace, map my local directories, and so forth. This works great.
What doesn't work so great is that this is a very repetitive process. I'd love to be able to specify the workspace mappings within the project somehow, and then generate the appropriate profile. I'd also love to be able to set other preferences (like indentation, and various other settings on the DevTools "General" page) in a standard way.
I've thought of three ways this might be possible:
There might be an API for this, but I doubt it, as programmatic manipulation of browser preferences obviously is disfavored (but would someone have carved out an exception for DevTools?),
There might be a way to import/export DevTools preferences, and I might be able to generate the import format,
I might be able to figure out where they're stored in the user directory, and manipulate them myself (so far I haven't, though).
There's also one partial solution I've considered:
I might be able to copy a "template" browser profile to get some of the shared settings above. Then I'd still have to do the workspace mapping each time, but I might be able to get away with not doing the rest.
One really elaborate strategy I could try would be to use browser automation, as suggested in Google Chrome - how can i programmatically enable chrome://flags some of the modules from disable mode to enabled mode? ... but that seems like overkill even as I start using the stuff more heavily; I don't think I'm quite ready to invest that kind of up-front effort in it.
Is anyone familiar enough with how the Chrome DevTools preferences work to judge which strategies might be most promising?
There is no way easily sync DevTools settings. They are stored in localstorage scoped to the DevTools. Which means they are in a special sqlite DB which isn't easy to transfer between machines (plus you'd bring all the other stuff with it.)
Sadly, you are left porting this all around by-hand with each new machine.

Silver light is not getting loaded in Chrome version 40 and above

As of now all the chrome browsers version above 40 are coming with disabled NPAPI plugin and it's going to permanently block the support for it. I have a silver light control in my application and am going to to rewrite the functionality with others but temporarily I want this NPAPI plug in to be auto enabled when web application launches in client machine. Is there any way so that I can auto enable NPAPI plug in in chrome through java-script or jquery or is there any other way I can load silver light controls in Chrome browsers without manually enabling it? TY
No. That would kinda defeat the whole purpose of what they are trying to do.
The closest you could come would be to manually edit the Local Setting json file in the Chrome profile to add the enable-npapi flag, but that would require an executable or installer running on the client machine which would only work if Chrome wasn't running.
The Chrome team has obviously determined that nobody actually has a good reason for using NPAPI, or at least that those reasons aren't good enough, and therefore any of us who rely on it are now required to find another way.
(Frustrated? Me? What ever gave you that idea? ;-))

Disable Application Cache in Chrome and Safari

I’m using the AppCache in order to enable offline access for a web app. The issue is that for development every time I make a change to my JavaScript I also need to make a change to the manifest (in order to trigger a re-download of the cached field). Now I know that in FireFox you can disable the AppCache (in fact you are prompted when you first visit the page whether to grant permission to web site to store data locally) which makes it a lot more convenient for development.
My question is there a similar option for chrome and safari?
I know that I can view/Edit the AppCache in chrome via chrome://appcache-internals/, what I’m looking for is a way to disable it.
Thanks
In Chrome, use Incognito Mode. Okay, it's probably not what it was originally intended for, but it does the job. Nothing gets cached, and now developers everywhere have a handy excuse for why they might be using Incognito Mode.
I assume there's similar 'Private Browsing' functionality available in Safari.
EDIT: I see from your comment that you want to disable Cache Manifest functionality only. Try starting Chrome from a Command Line with the --disable-application-cache switch.

Minimize Chrome browser to tray?

How to minimize chrome browser to tray when I click on standard minimize button?
I don't want Chrome to appear in task bar.
Can we implement this by Chrome extension code?
As amer pointed out, there exists an extension solely purposed to do this functionality.
Luckily, the extension is open source and has a home here you can borrow it as long as your extension itself is kept open source (you should check the license for details).
Note, though, that since the chrome extension APIs don't provide this functionality (tray icons and hiding browser windows), the extension resorts to an NPAPI plugin (you can see in the source trunk that it bundles a .dll file, and that is open source (C++) too!).
It's not the best case scenario, Google discourages NAPAPI unless it's the only way (in this case, unfortunately, it is) due to security openings. The extension on the Chrome Web Store will ask for permission to "Access your data on your computer" which is seen negatively by wary users, especially and justifiably so if you don't take an effort to explain that general permission wording more clearly in your extension description.
Also the extension is targeted at Windows platforms, so you would have to look into specific NPAPI implementations for Linux and Mac if you need to support them.
Use the open source project RBTray on SourceForge. then you can minimize any window to the icon tray. Works on Windows 7.
Once you run it, you need to right-click on 'minimize' icon of any window (left-most one, the one that normally moves window to task bar). Window will be moved to system tray instead.
This extension exists:
https://chrome.google.com/extensions/detail/ajedaeoideoipodoijpbpabhhadnniac