Skip to content
electrify3Public

About

PhoolGuvi extension for courses.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

GUVI Direct API Auto-Solver Extension (v3.0)

Built directly from GUVI's internal course_content.js, steroid.js, and learnable.js.

The floating control panel markup is in hud.html and its styles are in style.css. hud-loader.js runs in the isolated content-script world to inject extension stylesheets and provide the template to engine.js; engine.js runs in the page's MAIN world so it can seamlessly call GUVI's internal page APIs (window.authorize, window.CourseContent, jQuery).

Architecture & How It Works

  1. Direct Video Completion (type: 'video-activity'): Calls authorize.invisibleAjax({ type: 'video-activity', courseId, sublessonId, level }, 'courseContent') directly (the exact API inside course_content.js lines 371-380) to immediately mark the video as watched and unlock the Activity quiz without waiting for the timer.
  2. Direct Quiz Validation (type: 'validate-quiz'): Instead of fighting Bootstrap radio buttons, v3.0 populates $('.quizstorage').data() directly (where course_content.js line 1255 reads answers from) and calls authorize.invisibleAjax({ type: 'validate-quiz', courseId, sublessonId, quizData }, 'courseContent').
  3. 1-Second Answer Discovery (data.result): GUVI's validate-quiz response returns data.result (e.g. ["1", "0"]), where "1" means Correct and "0" means Wrong (course_content.js lines 1265-1285). v3.0 locks in every "1" and increments only the "0" questions, solving any multi-question quiz in 1-3 seconds.
  4. Native Auto-Advance (CourseContent.renderCourse(data)): When all quiz answers are correct, GUVI's validate-quiz response returns the next lesson object and updated syllabus array (data[0].validated). v3.0 passes that directly to new CourseContent().renderCourse(data) and auto-dismisses the Geekoins popup modal (#preassessmentCompletionModal).
  5. Resilient HUD Injection: hud-loader.js injects the stylesheet and broadcasts hud.html. engine.js incorporates fallback markup and query selectors to guarantee the HUD always appears reliably without timing or parsing errors.

Installation

  1. Go to chrome://extensions/ in Chrome or Edge.
  2. Enable Developer mode in the top right.
  3. Click Load unpacked and select the folder containing this extension (PhoolGuvi).
  4. Navigate to any course video page on GUVI (e.g. https://www.guvi.in/courses-video?course=...).

About

PhoolGuvi extension for courses.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages