2

When selecting text in iOS, you get a "Select, Select All, Speak Sentence" popup as soon as you place the cursor. This doesn't seem to work in Safari where trying select something only brings up "Copy, Define, Share".

So how does one trigger "Select All" on a webpage shown in Safari?

enter image description here

2

‘Select, Select All, Speak Sentence’ are the options shown when there is no current selection. In your screenshot, a selection has been made, so the options change to be contextual to your selection, namely ‘Copy, Look Up, Share…’.

You can only bring up the first set of options without a selection, therefore this is only possible in a text input or textarea. You can make the entire page editable, thereby being able to place the cursor within without a selection, by running the following JavaScript in a Shortcut:

document.body.contentEditable = "true";

Edit Webpage shortcut screenshot

  • Is document.body.contentEditable = "true"; a persistent setting? Is there anything else needed in the Shortcut? How do you even use that in a Shortcut? – user3439894 Jul 14 at 15:56
  • @user No, similarly to JS run in a desktop browser's console, the setting applies to the current JS context which will likely be replaced on page navigation. The Shortcut only needs to consist of that one action to run the above JavaScript in the webpage. – grg Jul 14 at 15:58
  • This would be a much better answer if you'd actually show a working Shortcut workflow. The first paragraph of your answer is very informative; however the lack of an example Shortcut workflow showing how to properly use the JavaScript snippet makes for a marginal answer. – user3439894 Jul 14 at 16:12
  • @user I've added a screenshot of the shortcut. Unfortunately I can't share the actual shortcut itself as the sharing functionality appears to be broken on iOS 13, but I will add one when I can or you are welcome to add a link to the shortcut yourself. – grg Jul 14 at 16:18
  • 1
    Even with the screenshot this does provide directions, the steps necessary to actually create and use what you posted. I'm using iOS 12.x and can't recreate what you're showing. Not a big deal as at this moment I do not need to use this and was jut trying to get you to improve the answer so anyone wanting to select all text in a Safari window would be able to follow steps to create and use the JavaScript snippet and as presently written I think the average user will be lost. – user3439894 Jul 14 at 16:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .