hacked-prank
v1.0.2
Published
A simple package that displays a 'hacked' message on the screen
Downloads
10
Readme
hacked-prank
A fun package that creates a "Matrix-style" hacking effect on your webpage, complete with falling Japanese characters and a "YOU'VE BEEN HACKED" message. Perfect for pranks and demonstrations.
Installation
npm install hacked-prankUsage
ESM Import
// The effect will start automatically when imported
import 'hacked-prank';CommonJS Import
// The effect will start automatically when required
require('hacked-prank');Browser (CDN)
<!-- The effect will start automatically when the script loads -->
<script src="https://cdn.jsdelivr.net/npm/hacked-prank/dist/index.umd.js"></script>Effects
When called, the package will:
- Transform all text on the page into randomly changing Japanese characters
- Create a Matrix-style rain effect with falling Japanese characters
- Display a centered "YOU'VE BEEN HACKED" message
- Change the page background to black with green text
- Start the animation after a 3-second delay
Features
- Full-screen Matrix-style animation
- Text transformation effect
- Responsive canvas that adjusts to window size
- Automatic execution when DOM is loaded
- Non-blocking animation using requestAnimationFrame
- Works with both module and script tag implementations
Technical Details
- Uses HTML5 Canvas for the animation
- Written in TypeScript
- Automatically checks for DOM readiness
- Prevents multiple instances from running simultaneously
- Safe to use (doesn't affect scripts or styles)
License
MIT
