jeff1evesque / LeQue

Activate installed microphone, and analyze sound input
13 stars 2 forks source link

Bypass flash access prompt #14

Open jeff1evesque opened 10 years ago

jeff1evesque commented 10 years ago

I find the following prompt to be annoying:

screen shot 2014-05-20 at 12 37 22 pm

We will research whether javascript can be activated upon DOM load completion that will automatically trigger the Allow click event. If this is not possible, we will investigate whether we can write some sort of daemon -- which, unfortunately will need to be installed on the clients end.

jeff1evesque commented 10 years ago

I found that the <object> element that contains the flash dialog cannot be accessed via click events in the DOM. Therefore, no amount of javascript can access the Allow, Deny buttons since they do not exist in the DOM.


I'm moving my consideration to writing a script that the client would have on their machine. Some cool things I found:

Reposition the mouse-cursor with Python, AutoPy package to (200,200):

import autopy
autopy.mouse.move(200,200)

python IRC -

jeffreylevesque sproingie: what if i make an image detector, and find it's coordinates jwhisnant jeffreylevesque: you might have to go with open browser, screen shot page; image analysis - there the button is ... jeffreylevesque jwhisnant: Do you think I could do this fast enough to prevent things changing? jwhisnant jeffreylevesque: depends on how fast things change, this also relies on you not using the machine jeffreylevesque jwhisnant: we could freeze the computer (pause all processes) for maybe 2s (or whatever) until the task has completed -- do you think that's difficult?