jsbench / jsbench/jsbench.github.io
Allow snippet to be saved in URL hash
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 263
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
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/)']
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the application's URL and hash handling, then compare it with the issue's encoded snippet example. Confirm how snippets are currently serialized and loaded for logged-out users; done means a logged-out user can save and restore the shown snippets through the URL hash.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100