0

I recently discovered FireFox's userChrome.css where you can cutsomize about everything with CSS. I tried googling how I can customize the alert box (when I use 'alert()') but I can't find anything. Is this possible?

Parking Master
  • 551
  • 1
  • 4
  • 20
  • 3
    Does this answer your question? [How to change the style of alert box?](https://stackoverflow.com/questions/7853130/how-to-change-the-style-of-alert-box) – ETL Oct 26 '21 at 21:30

1 Answers1

0

Welcome to StackOverflow, Normal! According to this answer, Javascript alert boxes are system objects and not modifiable by CSS. However, you should rarely encounter one while using Firefox, and if you're in the process of writing a webextension, it's much better to write your own notification or popup.

ETL
  • 188
  • 10
  • 1
    Thanks! I didn't know you could make your own. – Parking Master Oct 26 '21 at 21:41
  • Yep. It's actually better for a multitude of reasons, least of which is that the JS alert box halts all other JS processes until it's dismissed. We're all here to learn new things :) Goodness knows I've asked my fair share of silly or duplicate questions on this site. – ETL Oct 26 '21 at 22:01