Skip to content
/ rrjs Public

A simple solution to annoy anyone poking around your website.

License

Notifications You must be signed in to change notification settings

TerraEgg/rrjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b3d8622 · · Jan 14, 2026

History

3 Commits
Jan 14, 2026
Jan 14, 2026
Jan 14, 2026
Jan 14, 2026
Jan 14, 2026
Jan 14, 2026

Repository files navigation

RRJS - Rick Roll JS

A simple solution to annoy anyone poking around your website.

Quick Start

Browser (HTML) - Direct Link (recommended)

Just put this in your .html file.

script src="https://cdn.jsdelivr.net/gh/terraegg/rrjs@latest/asciiPlayer.js">gt;script>gt;script>gt;new AsciiPlayer({autoPlay:1,loop:1}).loadAnimation('https://cdn.jsdelivr.net/gh/terraegg/rrjs@latest/data/ascii_animation.json')script>gt;
)" tabindex="0" role="button">

Browser (HTML) - NPM Package

npm install rrjs

Then in your HTML:

script src="node_modules/rrjs/asciiPlayer.js">gt;script>gt;

script>gt;
   const player = new AsciiPlayer({ autoPlay: true, loop: true });
   player.loadAnimation('node_modules/rrjs/data/ascii_animation.json');

script>gt;
ipt>" tabindex="0" role="button">

Or with a bundler (Webpack/Vite):

import AsciiPlayer from 'rrjs';


const player = new AsciiPlayer({ autoPlay: true, loop: true });

player.loadAnimation('node_modules/rrjs/data/ascii_animation.json');

JSON Format

If you decide you want to change out the ASCII art, edit in the following format:

{
   "frame_count": 23,
   "width_chars": 80,
   "frames": [
    {
        "frame": 0,
       "duration_ms": 100,
       "ascii": [
         "line 1 of ascii art",
         "line 2 of ascii art",
         "..."
      ]
    },
       ...
  ]
}
}

API

Constructor

const player = new AsciiPlayer({
   animationData: null,
   frameDelay: 100,
   autoPlay: true,
   loop: true

});

About

A simple solution to annoy anyone poking around your website.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published