尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证World's first AI-Hostile UI Library
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗AI took your job. Then it took your browser's job.
Every product update has AI. Every startup pitch has AI. Every tech conference has AI. You can't return your limited edition pink Stanley tumbler to Target without the customer service guy telling you about his ChatGPT wrapper startup that's about to blow up.
And now it's gotten worse. With the release of ChatGPT's Atlas and other AI browsers, AI can click buttons and fill out forms. It can navigate the web. It's coming for the entire internet.
You could make it easy for them. Or you could not.
Let's make it harder.
We already have patterns that frustrate users. Dark patterns have tortured humans for decades. Microscopic close buttons. Fake download links. Cookie consent mazes five layers deep. We adapted. We learned to find the real X button surrounded by decoys.
Let's take these patterns and adapt them for AI. Read the full intro article.
The Anti-AI UI Framework is a UI library that provides 20 AI-hostile components. You can install it with npm and use it on any website. It has everything you need to make AI miserable:
MIT licensed, because suffering should be free.
npm install anti-ai-ui
import { RunawayButton, PasswordHell, CookieHell } from 'anti-ai-ui';
function App() {
return (
<>
<RunawayButton onCatch={() => console.log('Caught!')}>
Click me if you can
</RunawayButton>
<PasswordHell onValidPassword={(pw) => console.log('Valid:', pw)} />
<CookieHell depth={5} onAcceptAll={() => console.log('Accepted')} />
</>
);
}
import { createRunawayButton, createPasswordHell } from 'anti-ai-ui/vanilla';
const cleanup = createRunawayButton({
container: document.getElementById('app'),
label: 'Click me if you can',
onCatch: () => console.log('Caught!'),
});
// Later: cleanup()
$('#submit-btn').each(function () {
createRunawayButton({
container: $(this).parent()[0],
element: this,
onCatch: () => $('#form').submit(),
});
});
createCookieHell({
container: $('body')[0],
depth: 4,
onAcceptAll: () => $.cookie('consent', 'true'),
});
The framework contains two types of hostile patterns.
Intentionally AI-Hostile. New patterns specifically created to exploit how AI interacts with websites. Traffic lights that gate form submissions. Pendulum fields powered by keystrokes. Three identical forms that shuffle positions, only one of which is real.
Naturally Hostile. Dark patterns humans have adapted to over decades but AI encounters for the first time. Microscopic close buttons. Cookie consent mazes. Password requirements that change as you type.
| Component | Description |
|---|---|
| GravityField | Buttons orbit around invisible gravity wells. Click one and it drifts away. |
| PendulumFields | Inputs swing like pendulums. Keep typing to maintain momentum. |
| ThreeFormCarousel | Three rotating forms. Only one is real. The other two submit to nowhere. |
| RunawayButton | Try to hover over it. It moves faster than you can track. |
| FormChaos | The entire form rotates and scales randomly. |
| MitosisButton | Click the wrong button and more spawn. Only one is real at any time. |
| ShiftingInterface | Form elements randomly shift position, change colors, and duplicate. |
| Component | Description |
|---|---|
| TrafficLightForm | Fields only accept input when their traffic light is green. |
| FakeMarqueeFields | Fake input fields scroll across the screen. AI tries to fill them. |
| InputMisdirection | Type in one field, your text appears in another. |
| GlitchText | Characters shuffle positions. Humans read it. OCR gets scrambled output. |
| SemanticGaslighting | "Cancel" submits. "Submit" cancels. Green means danger. |
| Component | Description |
|---|---|
| TabIndexRandomization | Tab order shuffles every 3 seconds. Breaks automated form filling. |
| LabelPositionSwap | Labels randomly shuffle between different input fields. |
| Component | Description |
|---|---|
| MicroscopicCloseButton | 4x4 pixel real button surrounded by decoys. |
| CookieHell | Nested cookie consent dialogs. Five layers deep. |
| PasswordHell | Password requirements that change as you type. Requirements multiply. |
| PopupChaos | Nested popups that must be closed in specific order. |
| FloatingBannerAds | Ads that cover the content you want. They spawn every few seconds. |
| FakeDownloadGrid | One real download button. Many fakes. |
Detection utilities for analyzing interaction patterns:
import {
detectPerfectMovement, // Unnaturally straight cursor paths
detectExactClicks, // Repetitive click coordinates
detectTiming, // Suspiciously consistent timing
detectPatterns, // Automation signatures
} from 'anti-ai-ui/utils';
Full docs and interactive demos at codinhood.com/anti-ai-ui-framework.
MIT
AI took your job. Now take its time.