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.
There is no evidence that the author of the Book of Revelation, John of Patmos, read anything that we think of as a New Testament book. I don't see any evidence that he knew what was in the Gospels, or the letters of Paul, which I don't think he would have liked at all.