How to get information from shell into browser javascript -
i have data available outside browser session want able read , process within javascript. data short string (~100 chars). note of interaction still user controlled.
for clarity, 1 implementation of capability carry out sjax request, triggered javascript bookmark retrieve password remote service , inject current page; injected data item here session id remote password service.
using local file io potential solution (in theory) explore other opportunities before committing.
modification of content supplied website browser not option, data needs available within "same-origin" sandbox.
while webdriver seems provide usable api, believe browser extension listens commands on network port - make unsuitable multi-user host (another application technology in managing jump-box sessions). can use unix domain sockets?
a convenient place transfer persistent information across different websites in browser session via window.name - can set window name command line @ start up?
a browser-specific solution ok, long browser firefox or chrome (the browser running on linux/bsd).
the data available before browser starts - hence using command line pass information option - how read data javascript?
Comments
Post a Comment