Autofill Search Chrome Devtools with string - google-chrome-extension

Is there a way to autofilled the Chrome Devtools search files panel with a string coming from a Chrome extension? See image attached. .
My goal is to either open the search devtools automatically with a string or dynamically know the files names an object is referenced in (for a Chrome extension).

Related

Chrome extension: How to detect if a different chrome extension is open?

In my chrome extension, I want to detect when another chrome extensions pop up window is open. Let's say my extension is named A and there is another chrome extension named B. I want code to execute on A when B is opened.
Is it also possible for A to interact with B's popup menu? As in A detects that B is open, so it will fill in input forms and click buttons?

Open Chrome Command line without 1st run new tabs

I am using a command line script to open a particular web page in Chrome and send keypresses to that web page
When Google Chrome opens for the 1st time chrome opens up its own Tab e.g. welcome to chrome/login to chrome and this throws everything off.
I dont want any new tabs generated I want only the web page I asked for
Is there a command line switch or method to force chrome to not generate its own tabs. Perhaps registry entry etc?
I have tried some but no success so far
Thanks
Confuseis
Since your question contains the AutoIt tag, I have to assume you want an AutoIt solution.
The best way to do this would be to use chromes --new-window command line switch. This opens a new instance of Chrome, with a single tab pointing to the URL provided, by executing the chrome executable via ShellExecute.
$sPath = #HomeDrive & "\Program Files (x86)\Google\Chrome\Application"
ShellExecute($sPath & '\chrome.exe', '--new-window "https://www.google.com/"', $sPath, "", #SW_MINIMIZE)

Chrome Extension for selecting a text and save as a bookmark?

I need to code a chrome extension,Selected text of web page has to be saved in to extension similar as a bookmark.please help.

VBA Insert .csv from website, .csv not in url

I am trying to figure out if there is a way with VBA to download the .csv file at the bottom left of the screen named "Download" at this link:
http://www.redfin.com/homes-for-sale#!excl_ss=true&market=socal&max_price=300000&min_price=50000&num_baths=1.0&num_beds=1&region_id=11203&region_type=6&time_on_market_range=30-&uipt=2&v=8
The .csv doesn't appear to be attached to a URL, which I know how to import, but I can't figure this out. Any help would be appreciated.
Matt
Try this URL:
http://www.redfin.com/stingray/do/gis-search?market=socal&region_id=11203&region_type=6&excl_ss=true&hoa=&max_listing_approx_size=&max_num_beds=&max_parcel_size=&max_price=300000&max_year_built=&min_listing_approx_size=&min_parcel_size=&min_price=50000&min_year_built=&num_baths=1.0&num_beds=1&open_house=&pkg=-&rd=&sf=1%2C2%2C3&sold_within_days=&status=1&time_on_market_range=30-&uipt=2&v=8&num_homes=500&sp=t&al=1&render=csv
There is actually a URL, it's just hidden and is accessed via some JavaScript Code.
In general, if you're wondering which URL is being used, try the following:
In Chrome:
Press Ctrl-Shift-J; this should bring up the debug console.
Click on a button on the bottom left to undock the debug console for convenience; it should now be in a separate window.
Go to 'Network' tab.
On the website, click the link to download CSV file.
Watch for new items appearing in the "Network" tab. One of them is likely the request to download the CSV file. Try right-clicking on it, and selecting "Open in a new tab". If you end up with the CSV file download dialog, then that's the URL you were looking for.
In Firefox:
Install FireBug plug-in, and do something similar to Chrome.
Of course it does:
http://www.redfin.com/stingray/do/gis-search?market=socal&region_id=11203&region_type=6&excl_ss=true&hoa=&max_listing_approx_size=&max_num_beds=&max_parcel_size=&max_price=300000&max_year_built=&min_listing_approx_size=&min_parcel_size=&min_price=50000&min_year_built=&num_baths=1.0&num_beds=1&open_house=&pkg=-&rd=&sf=1%2C2%2C3&sold_within_days=&status=1&time_on_market_range=30-&uipt=2&v=8&num_homes=500&sp=t&al=1&render=csv
You can find the URL by using the Developer Tools of IE, like so:
Open the website and press F12
In the window that appears (Developer Tools), select the Pointer Icon
After selecting the Pointer Icon, click the Download Link on the website
In the Developer Tools window you will notice a lot of HTML appears with a line selected; this line contains the link to the CSV.
Select the text in the downloadCsv function within that line: list.downloadCsv('...text to select...')
Add the copied text after http://www.redfin.com in the URL.

How to get selected text in Chrome

window.getSelection().toString() doesn't get selected text in Chrome.
How can I do that?
Remember, that should be done within a content script, I explained how its done here:
Chrome Extension: how to capture selected text and send to a web service

Resources