Read content & preferences from URL query string
See original GitHub issueThis would make sharing links to the page much easier.
For example, https://carbon.now.sh/?code=Hello%20world!&theme=blackboard
would pre-fill the editor with “Hello world!” and apply the Blackboard theme. Everything else would fall back to the default settings, of course.
If this would be a welcome addition, I’ll open a PR for it.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
A Beginner's Guide to URL Parameters - SEMrush
In this comprehensive guide, we explore the ins and outs of URL parameters. Discover now how to use query strings without hurting your ......
Read more >How can I get query string values in JavaScript?
Just call var langval = $.urlParam('lang'); , and you've got it. UZBEKJON has a great blog post on this as well, Get URL...
Read more >URL query string parameters in list and workflow criteria
Query string parameters are added to your website URLs when you use tracking URLs to track a visit from a certain source and...
Read more >How to Get URL Parameters with JavaScript - SitePoint
Learn how to parse query string parameters and get their values in JavaScript. Use the results for tracking referrals, autocomplete, ...
Read more >URL Query Parameters In GA | Search Discovery
All we have to do is navigate to Admin > View Settings > Exclude URL Query Parameters and type the query string in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t think the content should be in the URL (: Open to loading the settings from URL params.
For example,
(56 chars)
Encodes to:
堗臼铤⋆凃堜曚䙨㫐㖏橯圂Ⴃ㇝荆闌壷䅛鍅Ꮄ榋堑蒠総徖㽈䬥㧰穏
(29 chars)Just for fun, I also tried encoding the
server.js
file (1077 chars). It encodes to:(539 chars)