Skip to content
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

Allow select archives/interfaces to access Mink info using Chrome API #203

Open
machawk1 opened this issue Feb 3, 2016 · 3 comments
Open

Comments

@machawk1
Copy link
Owner

machawk1 commented Feb 3, 2016

Using externally_connectable ( https://developer.chrome.com/extensions/manifest/externally_connectable ), an archive's webUI (or any arbitrary web page, even one on localhost) could be added to the select set of archives aggregated on-the-fly or other webpages (e.g., The Heritrix/Wayback web interfaces in WAIL) could communicate with Mink directly. This might be useful to add buttons onto the archive's web interfaces using content page manipulation.

@machawk1 machawk1 added this to the 3.0 Release milestone Feb 3, 2016
@machawk1
Copy link
Owner Author

machawk1 commented Feb 5, 2016

Branch issue-203 has been setup with hooks. A simple web page like the following will invoke a callee's functionality in Mink:

<html>
<body>
<script>
var minkId = "ehlefgjpcinhloogfldmkojonnjpnloo";
chrome.runtime.sendMessage(minkId, {"test": "case!"},
  function(response) {
    if (!response.success)
      handleError(url);
  });

</script>
</body>
</html>

@machawk1
Copy link
Owner Author

machawk1 commented Feb 5, 2016

@weiglemc @phonedude Per above, web pages and other extensions can communicate to Chrome extensions (i.e., Mink) through message passing. Can you imagine some specific use cases for this?

@machawk1
Copy link
Owner Author

machawk1 commented Mar 4, 2025

See also machawk1/wail#542

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

No branches or pull requests

1 participant