jsbench / jsbench/jsbench.github.io

Allow snippet to be saved in URL hash

Open
#35 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.