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.

**TL;DR: 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][1]][1]

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

[![A colored warning is displayed in the duplicate question selection view][2]][2]

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][3]][3]

  [1]: https://i.sstatic.net/9Aglb.png
  [2]: https://i.sstatic.net/rGui7.png
  [3]: https://i.sstatic.net/jX2Pd.png

---

## Install and source
* **[Click to install](https://gist.github.com/poke/1fc94f494893b05b39c8446da0979446/raw/stackexchange-hammer-warning.user.js)**
* [Source](https://gist.github.com/poke/1fc94f494893b05b39c8446da0979446)
* Current version: 1.1.0 (2018-02-10 01:53 UTC)

## Changelog
* **1.1.0:** Add support for cloe review queue; adjust button label when hammering
* **1.0.x:** Compatibility improvements for Greasemonkey 4
* **1.0.0:** Initial release