[转载]ChatGPT逆向了个前端项目,把Twitter的VirtualScroller给完整的反编译出来了
最近拿ChatGPT逆向了个前端项目,把Twitter的VirtualScroller给完整的反编译出来了。
先拿到混淆后的代码,然后发给ChatGPT让它重写。如果生成结果太长,无法返回完整代码,可以让它单独返回某个函数。
当然这样拿到的结果是不能直接运行的,还是需要手动调试和优化的。
最终结果参见:https://twitter-virtual-scroller.vercel.app/
Github:https://github.com/jimliu/twitter-virtual-scroller
Twitter VirtualScroller
This project is a demo of the VirtualScroller component on Twitter, which allows for efficient rendering of large data sets in web applications. For more information on the VirtualScroller component, please refer to the article "Twitter Lite and High Performance React Progressive Web Apps at Scale".
The VirtualScroller source code used in this project was obtained through reverse engineering the JavaScript code on twitter.com. With the help of ChatGPT, the obfuscated JavaScript code was deobfuscated and made readable. The result was manually debugged and optimized.
Disclaimer: This project is for learning purposes only, and the code should not be used for commercial purposes. Please do not use this code for any commercial or business-related purposes.
Demo