Find out which program made chrome open - javascript

On Skype, someone sends me website link... I click those and Chrome opens up showing the page.
Is there an event/hook/listener for chrome extension to show that the link was clicked on Skype?
In other words, find out which program made the chrome open from a Chrome extension.
Checked a bit around but couldn't find anything.
Thank you

No. That information isn't recorded anywhere. And it isn't a Chrome extension. It's just one process launching another process.

Related

Chrome Extension Add New Menu to System Tray Icon of Chrome

I want to add my extension options menu in system tray icon of Google chrome. I searched it a lot but not found even a hint. Here I saw one extension added it.
Could anyone help to explain that. I even have look into source code of that extension but didn't found answer. So finally here.
This item appears if the following conditions are met:
The extension requests "background" permission.
Chrome settings allow "Continue running background apps when Google Chrome is closed".
This menu item is mostly a reminder "what extensions/apps are keeping Chrome runtime running in backround". If no extensions meet the above critera, the Chrome icon doesn't appear at all.
If clicked, it has a fixed behavior that you can't change:
If the extension has an options page defined, it's opened in a new tab, even if it's the new-style options page that should be embedded in chrome://extensions. That last point is certainly a bug.
If the extension has no options page defined, it opens chrome://extensions/ in a new tab.

How to load https:// websites on click of chrome extension

I have made a Chrome Extension for webpage translation but when I load a https:// based website and click on the chrome extension, it shows the shield icon and asks to click on to load unsafe script. But what I want is, when I click on chrome extension it should automatically load that page and start the translating process, I don't want that shield message to intervene between clicking on chrome extension and my servlet code. I have read about a command --allow-running-insecure-content and I don't know how to use it in my java code to automatically load that website.
I have not done it yet because I am not sure that this is write solution or not and it is also related to security so I didn't want to take risk with my computer without any proper guidance about it. Kindly help me. How to automatically load the scripts without clicking on that shield button.
Thanks in advance.
try to remove the http: or https: and use just //
http://path.to.image => //path.to.image

How can i find all iframe on the webpage?

I want to know that is there any add-on available in firefox to find all iframe available on webpage.?
I want to use it for selenium webdriver automation to switch into iframe.
Google Chrome
Use Chrome Developer debugging Tool to find all the available iFrames in the web page.
Open chrome web Browser
Press F12 key
Press Esc key
In console, you will see a filter icon followed by the dropdown top frame
Click on the dropdown to see the iFrames availability.
Thank you for your valuable reply
finally i find answer of my problem.
Web Developer extension is addon for firefox. which have one option "Outline Frames" which highlight all iframes on the webpage
once we found iframes on the page we can get its name/ id / xpath/ css whatever we need in selenium automation using firebug.
thank you :)

chrome/firefox- how to run a javascript command

I am using a gwt based ui design framework (called GXT). In the docs for this framework, it is mentioned that running "javascript:isc.showConsole()" when the app is running, will open the developer console in browser.
However when I run this in Chrome it instead does a google search for the command- in firefox it simply does not work.
How do I execute this javascript in firefox or chrome--
javascript:isc.showConsole()
Bookmarklets cannot be executed in the location bar/omnibox any more.
You have to bookmark the javascript: link before it can be executed.
A better solution is using the built-in Developer tools, in which code can be pasted and executed in the current page:
Firefox: Ctrl Shift K - See Using the web console.
Chrome: Ctrl Shift J - See Developer tools.
In Chrome, you add a tab, open bookmarks - click Other Bookmarks, right click in the bookmarks area, click add new page - and paste the URL.
In Firefox, just manage your bookmarks, click on the folder, right click in the bookmarks section and click New Bookmark.
You have to put the command in the URL of the very SmartGWT
application that you're developing, not any blank page.
Making it become a bookmark bar is a good idea, click that bookmark
when you're opening the application will open the console for you.

How can I debug Javascript errors while writing Chrome extensions?

How can I see javascript error when loading chrome extensions? I've tried using developer tools but I don't see any errors there. Also if I use console.log, I don't see any output in the console.
Anyone have any ideas?
http://code.google.com/chrome/extensions/tut_debugging.html
Go to the Extensions page (chrome://extensions), and make sure Developer mode is still enabled. The Extensions page doesn't need to be open for the following to work. The browser remembers the setting, even when the page isn't shown.
Right-click the extension's icon and choose the Inspect popup menu item. The popup appears, and a Developer Tools window like the following should display the code for popup.html.
The above answer doesn't work anymore. Sadly the Inspect Popup menu item has been removed from Chrome.
But this answer works:
Debug popup.html of a Chrome Extension?
(More precisely: the second comment of the first answer on the above page helps).

Categories

Resources