org-board icon indicating copy to clipboard operation
org-board copied to clipboard

Function after opening archived web page

Open ghost opened this issue 5 years ago • 2 comments

I'm attempting to open archived web pages with Hypothesis automatically enabled, which allows annotating web pages. One way to do it is to inject a script (same as their bookmarklet). If I get it straight, this should be easy to implement if there was an equivalent of org-board-run-after-archive-function for org-board-open. Any chance that this could be implemented?

ghost avatar Apr 19 '19 12:04 ghost

Yes, we can add an abnormal hook (org-board-after-open-functions) that runs at the end of org-board-open. Then you should be able to add a function to that hook which will inject the Hypothesis script into the newly opened browser tab.

charlesroelli avatar Apr 27 '19 11:04 charlesroelli

Thanks for taking the time to answer my question. I would love to attempt to implement that hook but, unfortunately, my Elisp skills are close to non-existent so I'm pretty much useless in this regard. Despite that, what can I do to help?

ghost avatar May 28 '19 14:05 ghost