3 posts tagged ‘JavaScript’
How to Highlight Text Fragments When Linking
Paul Kafasis: In recent months, I’ve begun to notice that results from web searches often highlight specific text on the page to which they’re linking. The web page is also scrolled to the relevant content. It’s quite helpful! A quick investigation showed this is accomplished by appending a bit of code, #:~:text= to the URL […]
Disabled Safari Extensions Are Not Fully Disabled
Jeff Johnson: The good news is that when you navigate to a new page in a Safari tab after disabling the extension, its content script won’t get injected into the new page. The bad news is that if you navigate back to the old page with Safari’s back button, the disabled extension’s injected content script […]
Mastering DOM Manipulation With Vanilla JavaScript
Phuoc Nguyen (via Hacker News): Web development moves at lightning speed. I still remember when I first started using libraries like jQuery, Prototype, script.aculo.us, Zepto, and many more. Even with modern tools like Angular, VueJS, React, Solid and Svelte, we still have to deal with the Document Object Model (DOM). While these frameworks encapsulate and […]