Hides nameplates based on the unit's name or npcID and CVar settings. Add the Unit Name or npcID as a trigger.
It hides/shows based on a cvar value, i use profanity filter and therefore use this macro to swap the state:
/run SetCVar("ProfanityFilter", tostring(1-tonumber(GetCVar("ProfanityFilter"))))