Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dotmpe/google-chrome-htdocs
Client for server.
https://github.com/dotmpe/google-chrome-htdocs
Last synced: 11 days ago
JSON representation
Client for server.
- Host: GitHub
- URL: https://github.com/dotmpe/google-chrome-htdocs
- Owner: dotmpe
- Created: 2014-05-16T22:32:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-11-17T13:22:03.000Z (about 4 years ago)
- Last Synced: 2024-10-12T04:28:06.757Z (about 1 month ago)
- Language: JavaScript
- Size: 969 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
## ReadMe
Opens up Google Chrome for (shell) scripting, use with discretion. Enables a
user or system script with access to a FIFO to request tab and page info.### Intro
Installs a popup to display metadata (and actions) for the displayed page.A background process listens at one FIFO and responds on another using a
'stdio'-type message service.### Install
- Add PWD as "unpacked" extension in "developer mode"
- Copy messaging hosts to `~/.config/google-chrome/NativeMessagingHosts/.json`.## Dsgn
- Request with single line JSON at $TMP/htdocs-chrome.fifo
- Read responses as single line JSON at $TMP/htdocs-chrome-out.fifoTODO:
Page
- get-title
- get-selectionBackground
- get-url - return bookmark and tab info for URL
- get-urls - list open URLs only
- get-pages - list titles and locations and link data for open tabs, see
get-page for details.
- get-page - list noteworthy resource details for url (if opened)
- get-bookmark - retrieve bookmarks info
- get-bookmarks - list bookmarks
- set-clipboard
- get-clipboard## Status quo & objectives
- TamperMonkey/MeddleMonkey extends content-scripts (with javascript) for all or some URLs.
- Shellac can be setup to do almost anything (using shell scripts) using URLs as well.Neither has an obvious and quick access for a shell script, and I do not want to
click somewhere on the browser everytime I need some data in a script. What I
want is to send a request and get a response on a stdio (in a shell). And
probably to trigger certain messages to a shell script or command as well. With
that done, it might as well be nice to popup with a representation of the
metadata and actions for the page. And then to make all those parts user-
configurable to some extend. There is some overlap with the two existing
extensions.