8000 How can we get active tab url in windows? · Issue #147 · selfspy/selfspy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

How can we get active tab url in windows? #147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
armsmani opened this issue Jul 6, 2016 · 5 comments
Open

How can we get active tab url in windows? #147

armsmani opened this issue Jul 6, 2016 · 5 comments

Comments

@armsmani
Copy link
armsmani commented Jul 6, 2016

We are getting only window title for all application, I want to capture URL instead for window title in Browser. Is it possible in this lib or please advice how can we achieve this.

@olejorgenb
Copy link
Contributor

I don't think that's possible without cooperation from the browser. A simple fix would be to create/find an browser extension that pushes the url to the window title.

@reubano
Copy link
reubano commented Jun 22, 2017

RescueTime manages to do it without a browser plugin, any idea how they do it?

@reubano
Copy link
reubano commented Jun 22, 2017

Here's an AppleScript solution

I've verified it at least works for Chrome

tell application "System Events"
    tell application "Google Chrome" to return URL of active tab of front window
end tell

@reubano
Copy link
reubano commented Jun 22, 2017

And here for linux.

@remram44
Copy link
remram44 commented Dec 6, 2018

Pressing Ctrl+L and Ctrl+C would actually interfere a lot with what I'm doing. And the JSON method doesn't seem to work anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
0