Giter Site home page Giter Site logo

daidr / paimon-webext Goto Github PK

View Code? Open in Web Editor NEW
155.0 3.0 8.0 5.05 MB

Track Genshin Impact stats in your browser.

License: MIT License

TypeScript 68.86% HTML 0.43% Vue 28.75% CSS 0.09% JavaScript 1.88%
browser-extension chrome-extension firefox-extension genshin firefox-addon

paimon-webext's Introduction

English | 简体中文

Paimon

Paimon

screenshot_popup

wakatime GitHub commit activity

GitHub package.json version Mozilla Add-on Chrome Web Store Microsoft Edge Addons

Track Genshin Impact stats in your browser.

Features:

  • 🌙 Real-time resin tracking.
  • 💰 Track your daily expeditions, commissions, realm currency, parametric transformer and weekly boss status.
  • 🌏 Fully server(CN & oversea) support.
  • 🚨 Thresholds alerts for in-game stats.
  • 📚 Multi-account support.

Download

Firefox Addons

Chrome Webstore

Edge Addons

Development

pnpm i

pnpm dev

Debug

firefox:

pnpm start:firefox

chromium:

pnpm start:chromium

Build

pnpm build

Credits

Translations

  • 简体中文 @daidr
  • 繁体中文 @stevened7246
  • English @daidr
  • Русский @133718
  • 日本語(Not proofread) @Rigaln

Click the badge below to help us translate Paimon to your language:

Crowdin

License

License

paimon-webext's People

Contributors

daidr avatar lingyired avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

paimon-webext's Issues

米游社APP的内建浏览器UA

安卓客户端,在系统webview的UA后面添加了 miHoYoBBS/2.40.1
也许请求api的时候带上这个可以规避验证

插件导致 cookie 失效

刚登录就去插件选项点击获取 cookie, 第一次是显示正常的 (此时已经掉登录了), 刷新或者再点一次就会显示获取失败.
并且掉登录这件事不应该发生才对, 重复试了几次都是这样. 大概是又改了验证罢(悲
并且我目前点击插件图标只会显示一个很小的纯白框
version: 0.1.3

无法获取数据

  • 国服
  • 可以成功添加角色数据
  • 已启用角色
  • 浏览器版本:Firefox78.0.1 (64 位)(应该不是浏览器版本的问题,因为最开始是我更新到Firefox106之后才发现不能使用,正好因为别的原因就回退了旧版本,然而还是不能用。很早以前刚安装的时候能正常使用。
  • 截图如下

验证频率过高

如果去模拟正常用户打开APP时的请求动作能否恢复正常?
另外定时刷新数据似乎也是一个问题,这看起来太像机器人了(?

或者自动在后台搞定验证码,看起来难度更高.

接口可能返回1034错误

接口触发风控可能返回1034错误,此时需要请求验证码

附加(WIP):
国服采用极验验证
相关接口
https://api-takumi-record.mihoyo.com/game_record/app/card/wapi/createVerification?is_high=true 用于获取校验挑战
https://api-takumi-record.mihoyo.com/game_record/app/card/wapi/verifyVerification 用于提交挑战结果,成功后返回retcode: 0及原始挑战字符串

国际服存在相关接口,不过暂时没有触发风控的案例

does not work in Japan

I installed the extension on Chrome and tried using it, but it fails to retrieve data.

By the way, I hooked the function with the current latest version (2.46.0) published on Google Play Store, but the generation method was different from the Dynamic Secret used in this repository. Of course, I don't think everything is different, but the data required to generate DS, the Salt, or both have been changed.

aaaaa.a2222 is called: str=[{"applicationId":900015,"applicationName":"hoyolab","eventId":100004,"eventName":"ClientReport","eventTime":"1704270598","msgId":"83b83fe4-e1ba-460c-8a15-921cbf27fa07","uploadContent":{"deviceInfo":{"bundleId":"com.mihoyo.hoyolab","cps":"google","deviceId":"ebd335f1-ca21-36ef-9b0c-4921fc5791f7","deviceModel":"sdk_gphone64_arm64","deviceName":"Google sdk_gphone64_arm64","isp":"Unknown","platform":"Android","registerCPS":"google","sciX":1080,"sciY":2280,"systemInfo":"Android 14"},"logInfo":{"actionId":1053,"actionName":"heartbeat","cBody":{"commonExtraInfo":{"abTest":[{"6126_212":"2"},{"6157_251":"1"},{"6146_256":"1"},{"6152_257":"1"},{"6212_339":"2"},{"6211_338":"2"},{"6277_454":"2"},{"6315_483":"2"},{"6337_525":"2"},{"6360_528":"1"},{"6069_187":"2"},{"6065_548":"10"},{"6194_463":"1"},{"6253_416":"3"},{"6026_69":"4"},{"6290_450":"2"},{"6214_337":"8"},{"6199_295":"2"},{"6037_94":"1"},{"6071_426":"2"}]},"eventExtraInfo":{"sessionId":"1704268221708"},"gameId":"","lang":"ja-jp","pageArrangement":"","pageExtraInfo":{"nightMode":false},"pageId":"","pageName":"","pageSequence":"","pageType":"","sourceArrangement":"","sourceGameId":"","sourceId":"","sourceName":"","sourcePath":"","sourceType":"","subPageName":"","subPagePath":"","timestamp":"1704270598980","timezone":"GMT+9"},"logTime":1704270598},"userInfo":{"accountId":"","accountType":-1,"channelId":0,"userId":""},"versionInfo":{"clientVersion":"2.46.0","logVersion":"1.0.0"}}}], str2=
aaaaa.a2222 result=1704270599,167357,823fe44eb756842826e0fd7d160bec2c

I would be happy if this data could be of some help

建议在树脂等快要满的时候,打开浏览器会有提示

建议树脂,洞天宝钱,探索,参变等快要满的时候给个提示,这个数值可选。比如树脂提示的单选框勾选后,填入文本“155”,那么我打开浏览器时这个插件能帮我查询这些值,如果树脂符合条件,那么给我个提示。

仅靠减少请求次数可能无法避免触发人机验证

为了避免请求次数太多,我把这个扩展装到了一个不常用的chrome副本上,每天只点开看3-5次,且不保留后台。
似乎在0:00-9:00这段时间必触发风控,其他时间则基本不会,也有可能是每天的第一次请求会触发。
因此猜测仅靠减少请求次数可能无法避免触发人机验证。

通知功能

請問作者有計畫重新加入通知功能嗎?

【多个优化建议】浏览器插件单独页面展示多号委托树脂情况等优化建议

image
多号情况下 显示不全需要手动切换
使用派蒙托盘客户端版本的隐藏右下角通知栏时 点击别处界面依旧不隐藏 修改为:点击页面外隐藏展示界面 或者添加功能:开/关此点击外部隐藏窗口功能
添加系统快捷键可以随时切出界面
派蒙托盘展示界面整个是置顶于任务栏之上的 所以有且仅有托盘标志显示在展示界面外才能通过点击一次隐藏界面 这一点改成点击界面外隐藏
添加显示多号状态 目前一个界面只能显示一个号 换号需要点击切换账号再点所在区服 添加常用账号直接排列在桌面显示
image

image
把没在用的服屏蔽掉添加至客户端配置界面
最后就是浏览器插件也可以整一个单独页面用于查看多号 或者直接显示多号不知道可不可以支持那么大截面平铺 单独界面的话展示空间就很大 多号管理也更直观
image
树脂显示成轮盘百分比 数字不直观 委托数4/4且领取则底部为绿 其它选项亦如此 周本3/3底部绿 体力小于160绿 溢出则显红
探索宝钱参量这三个不太重要 放在下方 红色打底则溢出未完成
例如探索当全部未完成且未领取时背景显红(提醒溢出或待完成) 宝钱2400溢出、参量冷却到未使用背景提示红色 这样通过背景观察未做跟已做
树脂轮盘百分比设计会更直观
希望这些提议对大家有帮助

Add new Language(RU)

Hi daidr. I am using your extension and my language is missing. I made a translation for him and I want to ask you. Can you add it
messages.txt
.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.