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

Import rulesets from qrcode #3991

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

Chocolate4U
Copy link
Contributor

Add capability to import rulesets from QRcode

Note: I have reused resetRoutingRulesetsFromClipboard function for importing rulesets from QRcode. Therefore I've renamed this function to resetRoutingRulesets to be more inline with it's usage. Also old resetRoutingRulesets function renamed to resetRoutingRulesetsFromPresets.

Screenshot_20241119_234404-2

Add capability to import rulesets from qrcode
fixes and improvements
@2dust 2dust merged commit 5373579 into 2dust:master Nov 20, 2024
@2dust
Copy link
Owner

2dust commented Nov 20, 2024

Thanks for your PR
But I am worried that qrcode cannot store large rules

@Chocolate4U
Copy link
Contributor Author

Yes, but for most use cases it's enough, for example the current "China Whitelist" preset has 1299 characters. (which is a mix of alpha-numeric, symbols and Chinese characters). I have successfully encoded up to 2232 characters of the same character-set. You can also encode more characters if you only use alpha-numeric characters and symbols (not using complex characters like Chinese or Persian)

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

Successfully merging this pull request may close these issues.

2 participants