Skip to content

Detect last opened page in a web browser and suggest to install the relevant package #38

@artginzburg

Description

@artginzburg

e.g. if I've just opened https://code.visualstudio.com in Safari and then opened Overt, I would like it to have a button in an accessible place saying "Install Microsoft Visual Studio Code".

I wanted something like this for about 3 years already, but not enough to actually build a browser extension that does that.

The user should be able to disable this behavior, of course.

The only thing missing is to get the information about the opened page into Overt.
I plan to research modern ways of doing this later, but a couple of ideas (for macOS):

  • Using AppleScript and running it via a timer (like each 5 seconds): tell application "Safari" to tell window 1 to tell current tab to get URL. Looks like the simplest solution. The energy impact of such a timer should be lower than a system clock, which is neglectable.
  • Having a browser extension linked with Overt, sending an event with the current tab URL each time it changes. A more elegant solution, but too complicated relative to its task.
  • Having a helper app with accessibility access that uses some system API (if it exists, I did not look into that) to get the current tab URL. Not an elegant solution due to asking for accessibility access, and also too complicated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions