The author of the Gospel of Judas wasn't against martyrdom, and he didn't ever insult the martyrs. He said it's one thing to die for God if you have to do that. But it's another thing to say that's what God wants, that this is a glorification of God.