jsbench / jsbench.github.io

JavaScript benchmark playground
http://jsbench.github.io/
MIT License
266 stars 13 forks source link

Allow snippet to be saved in URL hash #35

Open ewwink opened 6 years ago

ewwink commented 6 years ago

people not always have github account, I think it will be good idea if snippet allowed to save in URL hash if user not logged in, for example url:

https://jsbench.github.io/#snippet=WycvdGUvLnRlc3QoInRlc3QiKScsICcidGVzdCIubWF0Y2goL3RlLyknXQ==

will be

# snippet 1
/te/.test("test")

# snippet 2
"test".match(/te/)
WycvdGUvLnRlc3QoInRlc3QiKScsICcidGVzdCIubWF0Y2goL3RlLyknXQ==
=
['/te/.test("test")', '"test".match(/te/)']