How to detect WebKit Inspector? - detect

I know how to detect Firebug in FF (if (window.console && window.console.firebug) alert ('Buu'); ) but how detect or disable Web Inspector in WebKit??

I don't recommend trying to reach out of your website and into the user's browser settings. If you succeed in turning off Web Inspector, users will start wondering why Web Inspector is spontaneously dying.

The Web Inspector injected code runs in an isolated world inside the inspected page for Chrome, so it cannot be detected from the code running in the inspected page's main world (see e.g. a class comment in http://www.opensource.apple.com/source/WebCore/WebCore-777.1/bindings/v8/V8IsolatedContext.h).

Related

Enable location detection in TestRigor

could you please explain how I can enable location detection in the TestRigor browser? For user it looks like browser pop-up, but rigor skip this pop-up and I receive only errors which caused by unavailable location (important for my project). I mean this pop-up
testRigor automatically accepts location popups and other browser-based permission requests. There is no need to add an action in your custom steps to handle them.
Update: testRigor has updated this to allow you to click on these browser pop-ups. You can click these by using OCR only if you have screenshots enabled at the OS level.
To do this, you can check it in Settings->Advanced, then scroll down to Desktop Web Fine Tuning and select Use OS (more features) from the How to take screenshots: dropdown.
Once that is done, you can use a command to click on the browser pop-up. For the one in the picture, you can say the following:
click "Allow" using OCR only using the mouse

How do I use Chrome's Developer Tools to catch the end destination for a click-event?

As a policy for security I want to stay logged-in by default to my social media networks, but I do not want external desktop links to open in my browser that is logged in. So my default browser-mode is --incognito. I have an issue with Chromium's Signal App crashing when my browser is set to default in incognito mode. This much I've figured out.
I want to have a bookmark that I can manually run in my logged in browser to run the Signal app.
The Chrome web store provides one such link. I can run signal by running Chromium outside of incognito mode and clicking in the webstore LAUCNH APP. I would like to use the Developer Tools to catch that even and know what the end-url is that triggers the Signal App.
How do I go about introspecting that?
I don't really understand the specifics of your use case, but going off of the title of your question, perhaps this will help:
Set an event listener breakpoint for Mouse > click.
Click on the element to trigger the listener(s).
Step through the code.

Possible to set default gateway to look like something else in a browser?

I currently have a NETGEAR Router. When you go to the default gateway it shows the GUI for setting up and editing settings etc in a browser. I would like to change what that page looks like. Is it possible to create my own HTML/CSS page as the home page or index and have a link or button that takes you to the GUI?
Thank you in advance.
The GUI you speak of is stored in the device's firmware. Typically, making changes to the GUI is not something supported by networking hardware.
If your device can be flashed with something like Tomato or DD-WRT (https://en.wikipedia.org/wiki/List_of_router_firmware_projects), you could probably modify the GUI from one of those projects to your liking and install it on your device.

Chrome Packaged App and Dual Monitors

I am working on a packaged app that will use multiple displays. I need to be able to open windows in specific displays. I've also tried opening windows and then, using javascript, moving them to a monitor. But the app will not move any further than the bounds of the active display.
Any ideas on how to get this to work?
Use chrome.system.display.getInfo with this you can get the display info for each active display.
With displayInfo.workArea you can get the working area of each display, you just have to think of one big display and each display is a workArea. With this information you can move your window with
AppWindow#setBounds to the correct monitor. Be carfull, AppWindow#moveTo is not working.
Use AppWindow#setBounds
E.g.
chrome.app.window.get('mainWindow').setBounds({"height": 200, "left": 2000})
Tested on v34
Boom. Change this to correct answer.
This was not the solution I was hoping for but as one of the comments mentioned there is a bug with Chrome and multiple monitors. In my case this is an internal application so I'm able to install anything i need to make this work.
My solution was to create a console application which launches the chrome app and then moves the windows around using the Windows32 API. Obviously not ideal but it works and the user still just needs one click to launch the app.
You can write a chrome extension to get this done. In the Background script you can listen to chrome.windows.onCreated event and use chrome.windows.update function to move the windows to other monitors

How to send a user to the main iPhone Settings screen from within your iPhone App

I currently have an application that requires the user to maintain a VPN tunnel. On load I check if the VPN tunnel is available.
I am wondering if there is any way for me to display an UIAlertView which on clicking "OK" takes the user to the iPhone main settings screen, so they can turn on VPN.
I know how to store app specific settings and that seem to be the most common articles out there, but is there any way to get your app to redirect the user to the main iPhone settings page?
As said, there's no way to do this currently. You'll have to create your own settings screen inside your app.
See a similar thread here:
How do I open the Settings application from my application?
iPhone has it's own NSURL protocols for apps, such as youtube:, mail:, etc. Judging by the "Airplane Mode" alert, there is clearly one for the Settings app. I imagine it is open, but don't know what the syntax would be off the top of my head. Check the docs about the protocols.