DEV Community

Discussion on: Coding an extension that blocks Social Media Websites with HTML, CSS and JS.

Collapse
 
joelbonetr profile image
JoelBonetR 🥇

That's nice as initial concept! 😁

I see you're looking for contributors, if I don't forget about it (can't promise) I'll add some PRs for useful features I mind during my vacations.

Have a great weekend! :)

Collapse
 
joelbonetr profile image
JoelBonetR 🥇 • Edited

@helitha nevermind, already did a PR, check it out.

Now it also checks for embedded content of those blocked sites inside other websites.

Sorry for the formatting thingy, prettier took care of it nicely 😁

Hope it suits you, cheers!

Collapse
 
hr21don profile image
Helitha Rupasinghe

Merged your pr request. 👍 @joelbonetr

Thread Thread
 
joelbonetr profile image
JoelBonetR 🥇 • Edited

Np, it was fun 😂 i wanted to toy a bit with Chrome extensions for a while so it was a good opportunity.

Btw I've first tried to set different files instead getting everything inside the main JS, it was breaking in errors because it doesn't consider it as module so I couldn't use import statements. Despite this, I'm pretty sure it should be a way to workaround that. Didn't have more time to make some tests, thought.

Collapse
 
hr21don profile image
Helitha Rupasinghe

Thank you for making a contribution! 🤓