Nice idea :)
It isn't, at first glance, obvious what the status of a question is - and I normally end up clicking the link before I see the [closed]
or [on hold]
or [duplicate]
- your idea is especially great because it uses colours - so you don't even really need to read - just see!
Anyways, I've made a userscript for this.
You can get it at Github over here.
I've also added this to the development version of my SE Additional Optional Features userscript where you can have this feature added and many more! :)
To install, use something like Greasemonkey (for Firefox), or Tampermonkey (for Chrome). I've only tested it on the latest version of Chrome, but it should work on Firefox and other browsers that support userscripts :)
![enter image description here](https://cdn.statically.io/img/i.sstatic.net/y1PLa.png)
It uses a slightly modified version of your CSS (the main difference being fixing the typo and adding a gray colour for on hold questions (the first week or so before being closed):
.duplicate, .closed, .migrated, .onhold{
color: #FFF;
padding: 2px;
border-radius: 4px;
font-size: 12px;
}
.duplicate {background: #FA0;}
.closed {background: #F00;}
.migrated {background: #19F;}
.onhold {background: #808080;}
It does not check with the API because it is very unlikely for a question to have, exactly, [closed]
or [duplicate]
or [on hold]
or [migrated]
at the specific positions in the title (the script specifically looks at the last x characters of the title to make sure there aren't many false alarms.) If you can find a legitimate example where this script is a false alarm, please tell me, and I'll make an API check - but I honestly don't think there's any point sending API requests for this.