The Weimar Republic did have hate speech laws, that were vigorously enforced and similar in spirit to modern-day Germany's laws.[1] Not only did that fail to stop the rise of the Nazi party, but the legal machinery was actively co-opted post-1933 to censor anti-Nazi groups.
In contrast, in the 1930s the most ardent pro-free-speech countries were the America and Britain. (Contemporary British hate speech laws not being created until well after the war.) Yet unlike almost all of continental Europe, any nascent fascist movements in the US or UK remained extreme fringe groups that never gained any political traction.
The historical record is pretty clear. At best hate speech laws, do nothing to disarm extremist groups. America's 250 year history of free speech absolutism, with virtually no extremist groups gaining widespread traction is evidence of this. At worse hate speech laws are a dangerous single-point of failure for liberal democracy.
[1] https://www.cato.org/policy-report/mayjune-2015/war-free-exp...