Does "Sulfur, together with carbon and iron salts, is used to form iron polysulfides and produce amber glass ranging from yellowish to almost black." correctly answer the question of What chemical compounds can make glass nearly black?
yes