🎨 Add a way to get cookies in iOS platform

This commit is contained in:
洛水居室 2022-11-23 08:21:57 +08:00
parent 7457fef7f3
commit 79b7244981
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -132,6 +132,11 @@ class SetUserCookies(Plugin.Conversation, BasePlugin.Conversation):
f"[1、通过 Via 浏览器打开{bbs_name}并登录]({bbs_url})\n"
f"2、复制下方的代码并将其粘贴在地址栏中点击右侧箭头\n"
f"`{escape_markdown(javascript_android, version=2, entity_type='code')}`"
f"iOS\n"
f"1、在App Store上安装Web Inspector并在iOS设置- Safari浏览器-扩展-允许这些扩展下找到Web Inspector-打开,允许所有网站\n"
f"2、[通过Safari打开{bbs_name}并登录({bbs_url})\n"
f"3、点击地址栏左侧的大小按钮 - Web Inspector扩展 - console - 点击下方文本框复制下方代码粘贴:"
f"`{escape_markdown(javascript, version=2, entity_type='code')}`"
)
await message.reply_markdown_v2(help_message, disable_web_page_preview=True)
return INPUT_COOKIES