Code Monkey home page Code Monkey logo

Comments (14)

CyanChanges avatar CyanChanges commented on July 21, 2024

草!碰到登出登不上去了

from chatgpt-toolbox.

CyanChanges avatar CyanChanges commented on July 21, 2024

@bigemon

from chatgpt-toolbox.

bigemon avatar bigemon commented on July 21, 2024

现在boxinit会默认移除Logout,避免误触。

PS:原本是打算增加事件处理,
结果这玩意儿既有onclick, 在webpack打包的js里又有EventListener。而且最近新的前端似乎部分用户没推送到,几个老哥说旧前端覆盖后失效了。
所以还是直接移除了事。

from chatgpt-toolbox.

bigemon avatar bigemon commented on July 21, 2024

high demand阻挡。
如果能重写页面在被high demand时自动替换为没被high demand的页面,理论可以直接登录。

关于high demand时禁止登录:
你的推测是正确的,
事实上,很早的时候大家就在用插件直接覆盖login的页面,从而规避high demand状态时禁止登录的限制。

PS: 在2022年12月15日或者更早的版本之前,甚至可以使用过期的token继续登录。只需要屏蔽session接口的403状态码即可。

鉴于最近high demand几乎是全天持续。或许我们有必要在插件里临时增加一个小功能规避这个问题。

from chatgpt-toolbox.

CyanChanges avatar CyanChanges commented on July 21, 2024

high demand阻挡。
如果能重写页面在被high demand时自动替换为没被high demand的页面,理论可以直接登录。

关于high demand时禁止登录: 你的推测是正确的, 事实上,很早的时候大家就在用插件直接覆盖login的页面,从而规避high demand状态时禁止登录的限制。

PS: 在2022年12月15日或者更早的版本之前,甚至可以使用过期的token继续登录。只需要屏蔽session接口的403状态码即可。

鉴于最近high demand几乎是全天持续。或许我们有必要在插件里临时增加一个小功能规避这个问题。

MIUI小窗每次移动(移动的那个条在顶上,移动的时候还能响应触摸)都碰到标签页切标签页,,我真的服了这个MIUI:(,bug反馈了,不到要几个星期
缩放的时候同理,碰到logout:(

from chatgpt-toolbox.

CyanChanges avatar CyanChanges commented on July 21, 2024

还有clear conversation如果没有确认的话能不能也调整一下

from chatgpt-toolbox.

bigemon avatar bigemon commented on July 21, 2024

还有clear conversation如果没有确认的话能不能也调整一下

我稍后让chatGPT也把clear conversation添加一下。

话说起来,login的禁止登录状态似乎也是由页面里的oof flag控制。这意味着,之前的代码不需要任何更改就可以直接套用。
你可以尝试开启一个无痕浏览窗口,在禁止登录的时候尝试运行脚本。这应该可以直接绕过当前的限制。

演示GIF(如果不动请点开查看) :

oofReplaceGif

from chatgpt-toolbox.

bigemon avatar bigemon commented on July 21, 2024

为了避免前端变动导致意外失效。
clear conversation和logout的防呆处理现已移入fetch的hook进行统一处理。
logout会产生一次询问,而clear conversation则是要求确认两次后才能正常提交请求。

from chatgpt-toolbox.

CyanChanges avatar CyanChanges commented on July 21, 2024

为了避免前端变动导致意外失效。 clear conversation和logout的防呆处理现已移入fetch的hook进行统一处理。 logout会产生一次询问,而clear conversation则是要求确认两次后才能正常提交请求。

如果在发送请求前网页先删除了cookie数据,那可能无效?

from chatgpt-toolbox.

bigemon avatar bigemon commented on July 21, 2024

为了避免前端变动导致意外失效。 clear conversation和logout的防呆处理现已移入fetch的hook进行统一处理。 logout会产生一次询问,而clear conversation则是要求确认两次后才能正常提交请求。

如果在发送请求前网页先删除了cookie数据,那可能无效?

在目前官方的前端版本:
logout流程会先用csrf接口获取csrf token,然后使用signout接口注销当前csrf并且跳转。

clear conversation则是使用patch方法提交一个应用到当前所有会话的bool值,用于控制会话的可视属性。(遗憾的是并不能将已经隐藏的重新启用)

也就是说,目前的前端版本中。这两个功能都依赖于远端api。测试中暂未发现清理本地cookie的行为。

from chatgpt-toolbox.

bigemon avatar bigemon commented on July 21, 2024

暂未收到更多的失败反馈,先close了噢。
如果发现某个浏览器里出现了预期外的故障,到时候再open一下贴一下信息。

from chatgpt-toolbox.

CyanChanges avatar CyanChanges commented on July 21, 2024

from chatgpt-toolbox.

bigemon avatar bigemon commented on July 21, 2024

其实firefox貌似不支持地址栏执行js( 发自我的小米 在 Bigemon @.>,2023年1月14日 21:46写道: 暂未收到更多的失败反馈,先close了噢。 如果发现某个浏览器里出现了预期外的故障,到时候再open一下贴一下信息。 — Reply to this email directly, view it on GitHub<#5 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQLAIBCVTP2E37I2ZJDEKRTWSKU3HANCNFSM6AAAAAATZVLONA. You are receiving this because you modified the open/close state.Message ID: @.>

这可以通过一个油猴脚本来解决。只需要让cgpt包装转换脚本到油猴就可以:)

from chatgpt-toolbox.

CyanChanges avatar CyanChanges commented on July 21, 2024

from chatgpt-toolbox.

Related Issues (20)

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.