Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)CH
Posts
3
Comments
173
Joined
3 yr. ago

  • You can do it via any of the tun2socks implementations. Maybe this can achieve what you want (it's an app with a hardcoded leaf config, you will have to compile it yourself)

    If you're fine with proprietary code, this should be enough.

  • a couple notes

    • you should declare all variables with let before you assign them, it's good practice and you can enforce it by enabling strict mode - put "use strict"; at the beginning of your function (or the entire script). Of course it's only needed in browsers, strict mode is usually enabled by default in most tools.
    • try not to execute extra code if you can help it. For example, in this case only the final reversedWord value matters, so you can do it at the end as opposed to on every iteration. Your code right now works in O(N^2) - with every new character in the string its speed decreases exponentially, but it should work in O(N) - a linear time. If you couldn't create reversedWord at the end, you could still initialize it with an empty string and append some text with += on every iteration, that still works in O(N) time as you don't have to recreate the entire string on every iteration.
    1. Depending on your language, use language codes like :en or :de. Very important if your native language isn't English.
    2. You can choose the search engine using DDG shebangs like !g (or redirect yourself to Google using !!g
    3. If SearxNG using Google gives you much worse results, it just means Google has that much info about you. Nonetheless, that's not my experience