Comment by odysseus
8 days ago
I have a JavaScript share sheet shortcut that forces a select all on any page. Really useful.
Something like this:
var result = [];
body = document.body;
sel = window.getSelection(); range = document.createRange(); range.selectNodeContents(body); sel.removeAllRanges(); sel.addRange(range);
selString = sel.toString();
// Call completion to finish completion(selString);
No comments yet
Contribute on Hacker News ↗