Printed text (newer wording, may work differently)
When your opponent activates a Spell Card that would destroy a Spell/Trap Card(s) on the field: Discard 1 card; negate the activation, and if you do, destroy it, then you can destroy 1 face-up monster your opponent controls, and if you do that, inflict damage to your opponent equal to the destroyed monster's ATK on the field.
Edison rulings
●You can activate Judgment of Anubis when there are no monsters on your opponent's side of the field.
●When you activate Judgment of Anubis, you destroy your opponent's monster after the activation and the effect of the Spell Care are negated. This means that the monster-destroying effect of Judgment of Anubis does not target.
●You can activate Judgment of Anubis and select a Spell Card that destroys only a Spell Card (like De-Spell) or only a Trap Card (like Remove Trap) or could destroy both (like Mystical Space Typhoon) or many (like Heavy Storm).
●You can activate Judgment of Anubis and select a Spell Card that negates the activation of a card and destroys it, like My Body as a Shield or Bait Doll.
●You can't activate Barrel Behind the Door against Judgment of Anubis because when Judgment of Anubis is activated, it has not been confirmed that the damage-inflicting effect will happen.
General rulings
1. You can activate "Judgment of Anubis" when there are no monsters on your opponent's side of the field.
2. When you activate "Judgment of Anubis", you destroy your opponent's monster after the activation and the effect of the Spell Care are negated. This means that the monster-destroying effect of "Judgment of Anubis" does not target.
3. You can activate "Judgment of Anubis" and select a Spell Card that destroys only a Spell Card (like "De-Spell") or only a Trap Card (like "Remove Trap") or could destroy both (like "Mystical Space Typhoon") or many (like "Heavy Storm").
4. You can activate "Judgment of Anubis" and select a Spell Card that negates the activation of a card and destroys it, like "My Body as a Shield" or "Bait Doll".
5. You cannot activate "Barrel Behind the Door" against "Judgment of Anubis" because when "Judgment of Anubis" is activated, it has not been confirmed that the damage-inflicting effect will happen.