/script if GetRaidTargetIndex("target")~=8 then SetRaidTargetIcon("target",8) end

Thank you for posting this. I was looking all over for something like this.