Skip to main content
1 of 4
poke
  • 707
  • 3
  • 13

Close hammer warning

Power users may have experienced this situation before: They see a question that’s clearly a duplicate, so they hunt down the duplicate target and close the question. It’s only then that they realize that the question was improperly tagged, so they cannot hammer it, although they expected it to work.

This commonly happens to me personally when closing Python questions, which then fails when the question has a versioned Python tag but is missing the general Python tag which I have the gold badge for.

This userscript is made for exactly that situation and warns you when you are about to close a question as a duplicate, and you do not have a gold badge to hammer it. That way, you can check the tags first, and maybe get someone else to fix it, before you can hammer it.

Once you open the close dialog, the userscript tells you immediately whether you can hammer-close a question:

A hammer icon in red is displayed next to the “duplicate of…” close reason

If you go further, it gives you a more prominent warning:

A colored warning is displayed in the duplicate question selection view

If you do have a gold badge to hammer a question, this is confirmed with a green icon:

A hammer icon in green is displayed next to the “duplicate of…” close reason


Install and source

Changelog

  • 1.0.x: Initial release
poke
  • 707
  • 3
  • 13