任意版本GitLens vscode插件破解邪修秘法
主要思路是使用cursor等工具,借助AI的能力让他查找位置,并完成代码改写替换
1、第一步
在vscode的插件中找到gitlens目录,大致定位一下需要破解的地方,如我的版本是17.4.1。
找到dist/webviews/graph.js文件
2、在未破解前的Gitlens提示升级弹窗中copy提示文本:如
Commit Graph
Pro
— easily visualize your repository and keep track of all work in progress. Use the rich commit search to find a specific commit, message, author, a changed file or files, or even a specific code change.Use on privately-hosted repos requires GitLens Pro.or sign inGet 14 days of GitLens Pro for free — no credit card required.
3、在cursor中打开graph.js,然后agent中让AI干脏活。如:
分析graph.js的代码代码把
Commit Graph
Pro
— easily visualize your repository and keep track of all work in progress. Use the rich commit search to find a specific commit, message, author, a changed file or files, or even a specific code change.Use on privately-hosted repos requires GitLens Pro.or sign inGet 14 days of GitLens Pro for free — no credit card required.
这部分的弹窗代码移除, 不需要弹窗逻辑
4、把cursor加工后的代码保存,重启一下vscode,发现破解完成