Skip to content

PGgamer2/Rickroll-Detector

Repository files navigation

Detect any Rickroll in some seconds!

I had to Rickroll myself multiple times to make this.

Q&A

What's a Rickroll?

Everybody knows what it is. There's also a Wikipedia and a Know Your Meme article.

It doesn't detect this link! Can you add it?

Sure. Report it in the issue tab or make a PR.

How does it work?

It basically detects if the video's ID is inside a "blacklist" contained inside rickrolls.json. Then it checks if the video's author is between another blacklist and after that, if nothing has been detected, it checks if the video's description and title contain the word "rickroll". Also, I added a "history" of previous rickrolls that have been detected by the user. These are stored using cookies.