bonk.io Account Switcher

Use this script in order to easily switch between your accounts!

< 脚本 bonk.io Account Switcher 的反馈

评价:好评 - 脚本运行良好

§
发布于:2025-10-14

Usernames and psaswords that contain spaces aren't saved properly, with the spaces being replaced with a + symbol. Doing a quick skim at the script it looks like that you could just wrap the credentials parser with decodeURIComponent to fix the problem, however it is up to you as the script maintainer to decide which approach you think is best. Until this issue is fixed unfortunately the script is useless to me as I can't sign into my accounts with the account switcher. My review will change once this problem is addressed.

kitaesq作者
§
发布于:2025-10-14

I could not check this case since i didn't have any accounts with a space in the username nor do i have any accounts with the space in the password. Usernames worked fine when imported so i assumed that usernames and passwords with spaces would work when you log in. I was also confused because responses were in JSON
- Note: decodeURIComponent does not replace + with spaces, i had to also use .replaceAll("+", " ")

§
发布于:2025-10-14

I didn't say decodeURIComponent would rfeplace + with spaces, I was trying to more broadly say that URI components were the issue here and if decodeURIComponent and encodeURIComponent were used in the proper places it would have fixed this issue. Either way, glad you found a solution nevertheless.

发布留言

登录以发布留言。