Dr. Derek Austin 🥳
1 min readSep 17, 2020

--

Hey Jason Knight! Thank you so much for stopping by with your thoughtful response!! I love your work on Medium (especially here in the responses section), so I feel genuinely honored!

You're 💯% right that there's no need to do these type of shenanigans to apply CSS using JS in apps or websites.

This article actually came about when I was working on a scraping / automation tool that was meant to be used from the console.

In addition, the site to be scraped has obfuscated "JSS" classes instead of a logical naming scheme for CSS.

Ultimately, I was looking for a simple toggle "off" switch by adding "display: none" as online CSS using JavaScript. Meanwhile, I found myself adding various borders from the console as I explored what the obfuscated classes actually meant.

Cheers!

--

--

Dr. Derek Austin 🥳
Dr. Derek Austin 🥳

Written by Dr. Derek Austin 🥳

Hi, I'm Doctor Derek! I've been a professional web developer since 2005, and I love writing about programming with JavaScript, TypeScript, React, Next.js & Git.

No responses yet