Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated Links #481

Closed
dvdff opened this issue Aug 11, 2020 · 4 comments
Closed

Generated Links #481

dvdff opened this issue Aug 11, 2020 · 4 comments

Comments

@dvdff
Copy link

dvdff commented Aug 11, 2020

The new form of generated links does not include values - which means it is not possible to update values from outside the browser.

@pfalstad
Copy link
Collaborator

Could you describe in more detail what you are doing, that you need to modify values in the links? I have some javascript code that generates circuit links but it uses old-style links, which still work.

@dvdff
Copy link
Author

dvdff commented Aug 11, 2020 via email

@pfalstad
Copy link
Collaborator

Well, if your existing code is generating circuits using old style links, it will still work.

If you need to create new circuits that you can modify with a script, you can generate the old style links by doing File->Export As Text, then replacing all the spaces with "+" and URL encoding the rest (replacing newlines with %0A).

Or, you could get the compression library we are using: https://github.com/pieroxy/lz-string/ And then do File->Export As Text, and compress the result using compressToEncodedURIComponent. Or take a new-style link, decompress it using decompressFromEncodedURIComponent, modify it and then compress it again.

@dvdff
Copy link
Author

dvdff commented Aug 12, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants