First, speaking against God is not blasphemy if it is not intended to defame him and motivated by defiance against him (Num. 15:21).
Simply put, the outward appearance of things is not the only factor in determining when things are right or wrong. Actions must be considered in their totality, and judged accordingly. Sometimes things that are sinful in one setting and with one motive, are not sinful when the setting and/or motive is changed.
we can look at the biblical definition of blasphemy. Blasphemy in general is “speaking against.” “Speaking” is pretty self-evident, although by implication we should also include other forms of public discourse like writing. “Against,” however, is a fairly vague term. In this case, it refers to taking a position in opposition to that of which one speaks. To speak against God is to say things in opposition to God himself, not merely against what God says. So, bad theology is not equivalent blasphemy. Blasphemy refers instead to things like calling God a liar, or cursing or reviling him.It may be direct, such as in saying evil things about God, or indirect, such as in making claims that cannot be true unless evil things are true about God.
In all cases, motive and meaning are important. One does not speak against something unless one’s meaning attacks that something, regardless of what words one uses (Words convey meaning only according to their actual or perceived intention .Since God always perceives accurately, his perceptions always precisely match your intentions .
We see a parallel to this idea in the laws regarding murder and manslaughter. The difference between these two actions is not in their outward appearance but in the intentions behind them.The same idea applies in many other cases in Scripture, as well .
With regard to a joke, a joke that does not mean anything harmful toward God, and that does not accomplish harm against him, should usually be considered harmless and not sinful. Making God the butt of a joke is sometimes inappropriate and sinful (though it also may be acceptable), but even when it is sinful it is not necessarily blasphemous.
So, if you made jokes about God because you hate him, then you blasphemed him. But if you merely made jokes that involved references to God because you saw something humorous in his creation that reminded you of true things about God, then you certainly did not blaspheme him.
Scripture has far more to say about what it takes to be a believer than it does about what it takes to blaspheme the Holy Spirit. Therefore, a very good way to approach this question is to look at what a believer is. If you believe the gospel and love God, then it is impossible that you have blasphemed the Holy Spirit. If you think you have, then you have simply misunderstood the Bible’s teaching regarding the definition of blasphemy of the Holy Spirit.
Our reliance on Scripture ought to encourage us not to condemn anyone without proper scriptural backing. The less clearly Scripture speaks to a subject, the less ready we should be to condemn anyone on the basis of what Scripture says. The more vague Scripture’s teaching on blasphemy of the Holy Spirit is, the more we should refrain from accusing anyone of it, including ourselves. Of course, I think Scripture is not entirely unclear about this subject, and that what you had done does not qualify. But if you think I’m wrong about its clarity on the issue, your response should still be to worry less.