Skip to content
View ffcsninja's full-sized avatar
  • Joined Dec 3, 2026

Block or report ffcsninja

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
ffcsninja/README.md

FFCS Ninja

Priority-based course registration for VIT's FFCS, as a Chrome extension.

Version Chrome Extension License

You list the courses you want, in order, with the faculty and slots you'd accept. FFCS Ninja then works through VTOP's registration pages for you: it opens each category, finds each course, picks the first open slot that matches your preferences and registers it, moving on the moment VTOP has loaded the next page. When a course is full, Seat Sniper keeps checking it until a seat opens.

It runs entirely in your browser, on VTOP's own pages, by clicking VTOP's own buttons.


Features

Registration

  • Priority list with several faculty and slot preferences per course, tried in order
  • Course types ETL, ELP, ETP, TH, LO, SS (Soft Skill, matched on slot and venue) and TH+LO (B.Tech theory and lab pairs)
  • Matching that ignores case and VTOP's extra spaces in faculty names
  • Skips courses you already have; searches every page of the course list

Two modes

  • FFCS Mode: one fast pass through your list, for when your registration slot opens
  • Seat Sniper: keeps reopening a full course and registers the moment a matching seat appears; one course at a time, or looping over all of them with a running tally
  • Modify (a switch on a priority, in Seat Sniper): for a course you already have. Seat Sniper watches its VTOP Modify page and moves it to an open class that fits your preferences, pressing Update once the emailed code is in (Modify)
  • Auto start: signs in with Chrome's saved password, walks VTOP's pages to the course categories and starts the run by itself (again after VTOP signs you out mid-run); the edges of the browser window glow blue, with a band of drifting dots, while it waits

Speed and reliability

  • No fixed delays: each step starts as soon as VTOP has rendered the page
  • Each course list is opened once: the Proceed buttons of your courses in it are kept, so later courses and every Seat Sniper re-check open in one page load from any page (Kept Proceed buttons)
  • Failed VTOP requests are noticed at once and retried; slow ones are waited for
  • A lost Register response is checked against the course list instead of clicking Register twice
  • Unexpected pages (such as the compulsory course's result page) send it Home to resume the same course

Overlay

  • Opens on the VTOP page from the toolbar icon
  • Live Activity: one short line per step, and the run time (Done in 1.29 s) when it ends
  • Results on each priority: green for registered, a red glow and the reason for not registered, plus an Unsuccessful Registrations list

Extras

  • CAPTCHA on the sign-in page filled in by a small neural network that runs in the browser
  • Delete and Modify Slot OTPs filled in from your Gmail, after checking the prefix on the page; on a Modify page, Update is pressed once you tick the class you want
  • Discord notifications for starts, open seats, registrations, failures, sign-outs and a Seat Sniper heartbeat, with optional screenshots
  • Commands from Discord: !ss for a screenshot, !status, !log
  • Signs in again by itself when VTOP signs you out mid-run (optional, with Chrome's saved password)
  • A debug log of every step, to copy, download or send to Discord
  • Attendance reset: in Seat Sniper mode, drops a registered course (you enter the emailed code and press Enter) and takes the same class straight back
  • Optional: stop the run at the first course that isn't registered
  • Optional slot clash check: reads your timetable from View / Modify and never tries a slot you already have; ETL and theory + lab pairs need both slots free; a Slots Taken section shows what it knew
  • Optional gaps in milliseconds: before every click, and after every registration; for Seat Sniper, a wait between checks and a limit on checks per minute

Install

  1. Download the code: git clone https://github.com/ffcsninja/ffcsninja.git, or download the ZIP from GitHub and unzip it.
  2. Open chrome://extensions and turn on Developer mode.
  3. Click Load unpacked and select the folder that contains manifest.json.
  4. Pin FFCS NINJA to the toolbar.

After updating the code, press the reload arrow on the extension's card and reload your VTOP tabs.

Quick start

  1. Sign in to the VTOP registration site and click the FFCS NINJA icon to open the overlay.
  2. Click + to add a priority: category (for example Programme Core), course code (CSE1001), type (TH) and at least one faculty preference (for example faculty contains KAVYA, slot contains C1).
  3. Add the rest of your courses and order them with the arrows. The list runs top to bottom.
  4. Choose FFCS MODE or SEAT SNIPER and press START.
  5. Follow Live Activity. When the run ends, check each priority's result, then confirm your timetable on VTOP's View / Modify page.

The Getting started guide walks through this in detail.


FFCS Mode and Seat Sniper

FFCS Mode Seat Sniper
Use it when Your registration slot opens A course you want is full
What it does Goes through the list once and registers what's available Reopens the current course until a matching seat appears, then registers it
Order Every priority in turn One priority at a time until it is registered (default), or every course in turn, skipping registered ones
When a course fails Marks it red and continues (or stops, if you set that) Keeps trying
Ends At the end of the list When every priority is registered, you press STOP, or VTOP signs you out
Discord Start, results, failures Start, a heartbeat every minute, open seats, results, stop

Course types

Type Name Selected by the engine
TH Theory only Theory slot
ETL Embedded theory and lab Theory slot, then one of that class's lab slots
ELP Embedded lecture and project Theory slot, then a lab slot, like ETL
ETP Embedded theory and project Theory slot only; VTOP assigns the project
LO Lab only Lab slot (faculty rule applies to the lab rows)
SS Soft Skill Slot and venue
TH+LO B.Tech theory and lab pair Like ETL; enter either code of the pair
Auto Detect from VTOP The type VTOP lists for the course; a TH or LO whose page has theory and lab classes is handled as TH+LO

Details and examples: Configuring priorities.


Documentation

Guide What's in it
Getting started Install, update, open the overlay, first run, attendance reset, controls
Configuring priorities Categories, course types, faculty, slot, venue and lab rules, how matching works, examples
How it works FFCS Mode and Seat Sniper step by step, attendance reset, auto start and signing in again, recovery when VTOP misbehaves, results, CAPTCHA
Settings Stop after an unsuccessful priority, Seat Sniper order, slot clash check, gaps between clicks and after registrations, Gmail OTP autofill, Discord notifications, screenshots and commands, debug log
Troubleshooting What each error means and what to do
Architecture For developers: files, contexts, messages, storage, network requests
Testing For developers: the mock VTOP page (node test/run-mock.js), the Gmail OTP and background checks

Project structure

ffcsninja/
├── manifest.json              Extension configuration (Manifest V3)
├── background.js              Service worker: icon toggle, message relay, Gmail lookups
├── captcha/
│   ├── bitmaps.js             CAPTCHA network weights
│   └── solver.js              CAPTCHA reader
├── scripts/
│   ├── automator.js           Engine: page detection, FFCS Mode, Seat Sniper
│   ├── vtop-requests.js       Runs in VTOP's page and reports failed requests
│   ├── content.js             Fills the CAPTCHA box
│   ├── overlay-injector.js    Puts the overlay on the page
│   └── gmail-otp.js           Gmail OTP autofill (service worker, VTOP page and Gmail tab)
├── overlay/
│   ├── overlay.html           Overlay markup
│   ├── overlay.css            Overlay styles
│   ├── overlay.js             Overlay logic
│   ├── discord-service.js     Discord notifications
│   └── allow-screenshots.*    Page that asks Chrome for screenshot access
├── icons/                     Toolbar and store icons
├── docs/                      Guides (see Documentation)
└── test/
    ├── mock-vtop.html         Fake VTOP page and scenarios
    ├── run-mock.js            Runs the fake VTOP page in headless Chrome (Node)
    ├── gmail-otp.check.js     Gmail OTP self-check (Node)
    └── background.check.js    Service worker self-check (Node)

No build step and no dependencies: Chrome loads these files as they are.


Privacy

  • The extension clicks VTOP's own buttons (kept copies of VTOP's Proceed buttons included); it sends no requests to VTOP by itself.
  • It never presses Confirm or Update on the Delete and Modify Slot pages, and never types, reads or stores your VTOP password (signing in uses Chrome's own autofill).
  • Priorities and settings stay in Chrome's extension storage (synced to your Google account if Chrome sync is on).
  • Only the features you turn on reach other services: Discord (your webhook) and Gmail (your signed-in account, OTP emails only).

Disclaimer

This extension is for educational purposes only. Use it at your own risk.

The authors are not responsible for failed registrations, missed courses, account restrictions or any other issue arising from its use.

Always verify your registration on VTOP.

License

Apache License 2.0.

You can use, change and share this code, including in your own projects, as long as you give credit. Anything you publish that is based on it must:

Contributing

Contributions are welcome.

  1. Fork the repository and create a branch: git checkout -b feature/my-change
  2. Make your change. If it touches the engine, add or adjust a scenario in test/mock-vtop.html (see Testing) and make sure every check passes.
  3. Commit, push the branch and open a pull request.

Questions and bug reports: GitHub Issues.


Made for depressed VIT students. If it helped you, star the repository.

Popular repositories Loading

  1. ffcsninja ffcsninja Public

    VIT FFCS BOT

    JavaScript 28 1