Suppressing definition display based on context tag?
Is there any way, using CSS or JS, to suppress the display of a definition (and associated usexes and cites) based on the existence of one of a short list of context tags (eg, obsolete, archaic, rare, dated)? Ideally this would be something that users could control as they do the display of translations, with a gadget to set registered user default preferences.
Not in any "clean" way, afaik, at least not without modifying the context templates. It would be technically possible to just have javascript search the page for things that look like context tags (looking for ib-content classes, probably), searching for links to a particular destination, and then going to the definition's li tag, and then hiding it. Note that this wouldn't hide things like translation tables. Here's the code for hiding senses with {{obsolete}}
:
$(function($){$(".ib-content>a[href=\"/wiki/Appendix:Glossary#obsolete\"]").parent().parent().hide()});