I want to say a few words with regards to question 2.
This feature is a browser-specific one. It works on Chrome 80 and other Chrome-based browsers like Edge. Unfortunately, Safari and Firefox does not have the same functionality.
When it comes to Safari, it is said that there's a Safari-version extension called Link to Text Fragment
, whose counterpart in Chrome works perfectly. It works by appending your selected text prefixed by #:~:text=
after the current URL. However, after testing it, I found it not working on Safari. And the user ratings and reviews confirmed its malfunction.
As a workaround, I found out 2 methods.
[] 1st, you can make your own 'extension' with a line of JS code. Just add a new bookmark in Safari. Give it a name and Edit its URL as
javascript:(function(){const%20selectedText=getSelection().toString();const%20newUrl=new%20URL(location);newUrl.hash=`:~:text=${encodeURIComponent(selectedText)}`;window.open(newUrl);})();
This is called a bookmarklet. Then, after you select a block of text on a webpage, click this new bookmarklet you just created. A new page with the appended URL with be open to you. Remember on the new page, the text that you selected would not be shown in highlight, since #:~:text=
only works on Chrome-based browsers. But the new URL generated will be useful to you.
[] The 2nd method is implemented inside QuickNote of MacOS. Check this link out, saying after you create a link using Add to Quick Note
in right-click menu,
"A link to the webpage appears in the Quick Note, and the text in Safari is highlighted. When you revisit the website, your highlight is still there, and a thumbnail of the Quick Note appears in the lower-right corner of the screen."
Then the highlighted text on webpage could be shared with MacOS users.
I think these would be very useful for those in need. ^^
Updates:
It turns out that #:~:text=
is supported for Safari Version 16.1+ !
Chrome |
Edge |
Safari |
Firefox |
Opera |
IE |
4-73 : Not supported |
12-18 : Not supported |
3.1 - 16.0 : Not supported |
2 - 111 : Not supported |
10 - 65 : Not supported |
6 - 10 : Not supported |
74-80 : Not supported |
79-81 : Not supported |
16.1 - 16.3 : Supported |
112 : Not supported |
66 - 67 : Not supported |
11 : Not supported |
81-111 : Supported |
83-111 : Supported |
16.4 : Supported |
113 - 114 : Not supported |
68 - 94 : Supported |
|
112 : Supported |
112 : Supported |
16.5 - TP : Supported |
|
95 : Supported |
|
113-115 : Supported |
|
|
|
|
|