3

Screenshot / Code Snippet

Adds a color highlight to closed questions. Inspired on a question asked by Hakan Fıstık

closed / duplicate / on hold higlighted in red

About

The script will highlight the close reason found at the end of a question title in red.

This might be efficient for users that either want to salvage potential value or users that scan the search results looking for questions to answer.
The script finds the question links in the question list pages and check if their title ends with duplicate, closed or on hold. The script then wraps that text in a SPAN element so it can get a different color by the provided styling.

License

CC0

Download

Source Install

Platform

The script is tested in TamperMonkey on Chrome Windows 10. It should work on any decent script manager as long as it isn't GreaseMonkey.

Contact

You can leave an answer here if you've found a bug or have a feature request. Direct PR's are welcome as well.

Code

The script is 100% jQuery and there is still not enough of it in this script.

I did use a MutationObserver.

Originally posted on Meta Stack Overflow

You must log in to answer this question.

Browse other questions tagged .