News for hackers. Stuff that matters.

Highlight Text in Chrome

I discovered today that you highlight any text in Chrome by adding "#:~:text=ANY TEXT" to the end of the address.

Do you know any other tricks for Chrome?.

( 6 comments | on HN )
Re:Highlight Text in Chrome by devang243 on Tuesday August 04, 2020 @12:51AM (#24046718)
Copy & Paste the following line in your address bar of google chrome desktop browser and press enter. (Like we always do)

data:text/html, <html contenteditable><Title>Notepad</Title>

Boom!

Now Your webpage retrieval part is turned into notepad

Re:Highlight Text in Chrome by Brett_S on Tuesday August 04, 2020 @02:16AM (#24047190)
Nice one. I extended that idea by adding it to my favourites so I don't have to type it each time.
Re:Highlight Text in Chrome by ChrisGranger on Tuesday August 04, 2020 @02:51AM (#24047376)
This works in Firefox as well.
Re:Highlight Text in Chrome by Brett_S on Tuesday August 04, 2020 @06:31AM (#24048539)
Turns out it works in Safari too.
Re:Highlight Text in Chrome by devang243 on Tuesday August 04, 2020 @12:49AM (#24046702)
instead of using PDF viewer software you can use chrome for view you PDF files
Re:Highlight Text in Chrome by Brett_S on Tuesday August 04, 2020 @02:14AM (#24047173)
I use that functionality everyday without thinking about it.