How pggamer2/rickroll-detector works
Rickroll Detector is a browser-based YouTube link checker. Its main workflow extracts a video ID, checks known video IDs and local detection history, then—if still unflagged—queries YouTube and checks channel IDs, title, and description before displaying a result. Detected links can be added to cookie-backed history, which can be viewed and removed. The HTML entry point and blacklist data are present in the tree but were not excerpted, so UI wiring beyond the shown DOM interactions is not inferred.
Main entry points: main.js Link checker · rickrollHistory.js History controls · rickrolls.json Rickroll blacklist
Components 7
Detection
- Link checker
main.js - Rickroll blacklist
rickrolls.json - Result display
main.js
History
- History controls
rickrollHistory.js - Browser cookies
Other components
- Link submitter
- YouTube API
Connections 7
- Link submitter → Link checker: submits link
- Link checker → Rickroll blacklist: loads list
main.js - Link checker → YouTube API: requests video
main.js - Link checker → History controls: checks history
main.js - Link checker → Result display: displays result
main.js - Result display → History controls: adds detection
main.js - History controls → Browser cookies: reads and writes
rickrollHistory.js