跳到正文
TikTok · 搜「ai tools」· ariacodez·· 2 天前精选AI 评分60

Chrome DevTools 内置 AI 助手用法演示:生成并执行网页特效代码

How to use the AI hiding inside Chrome 🔓 ✅ Right click any page and choose Inspect ✅ Open the AI assistant from the new icon ✅ Ask for any effect, like matrix rain or a mouse trail ✅ It writes the code and can run it for you right there ✅ Select an element first and it changes exactly that Save this for later. EDUCATIONAL PURPOSES ONLY #chrome #chromedevtools #ai #coding #webdev

AI 导读

Chrome DevTools 中新增了一个隐藏的 AI 助手图标,点击后可打开 AI 助手,让它根据当前页面编写代码。作者演示了让助手生成矩阵代码雨背景和鼠标拖尾效果,并直接在控制台执行;也可以先用检查工具选中某个元素,再让助手只修改该元素,例如把页面上的数字调高 1000 万,但这种改动只是视觉上的,刷新页面后就会消失。

打开原文tiktok.com
选题角度

原文演示了 Chrome DevTools 内置 AI 助手从图标入口到生成并执行代码的完整流程,适合录屏复现矩阵雨和鼠标拖尾两个效果。

博主

粉丝 7.3万

互动数据
浏览
1.5万
点赞
2078
评论
20
分享
130
收藏
1623

数字来自平台,为最近一次抓取时的数据。

正文

以下是视频口播的自动转写,可能有错字。

Extremely powerful tricks you probably should not know, part 3 8. Guys, this one's gonna be for educational purposes only.

But if you right click your page in chrome and click inspect, you get access to this new hidden icon. And if you click it, it opens up this ai assistant, and you could do some insane things with this.

I'm gonna tell it to write me a script to make my page background rain matrix codes. Then gonna write code for me to do just that, and this code is based off of what's on your page.

So if i take that code, press copy, then click this little arrow to navigate to my console, and then clear my console with this button, and paste that code in there.

I get that exact effect i requested. A matrix background raining code, and it literally stays there as i navigate the page.

But let's take it up a notch. I'm gonna tell it to create a trail of wherever my mouse goes. And this time, not only does it create the code, but it lets me execute it right there.

So, it's literally injecting that code for me. And if i go to move my mouse, boom, there is a trail following. Here's where it gets absolutely heinous.

I can target specific elements. So let's say i wanted to make this number higher. I can click on this inspect tool, then click on that item.

I want to change our ai assistant knows the exact element i want to change. So now i'm gonna tell it to add 10 bumble clock million to my buying power.

Now it's gonna create the code to increase it by 10 million. So if we go look at it, but keep in mind, this is just visual.

Please don't think life is that easy. If we refresh the page, that is going to be gone. You're not gonna find content like mine elsewhere guys.

Follow for more. Cheers.

来源:TikTok · 搜「ai tools」 · tiktok.com