Testbook Plus

Enhances Testbook UI, blocks tracking, and auto-crawls & downloads question papers as clean Markdown.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

작성자
quantavil
일일 설치 수
0
총 설치 수
5
평점
0 0 0
버전
2.0.0
생성일
2026-04-28
갱신일
2026-05-02
크기
67.9KB
라이선스
MIT
적용 사이트

Testbook Plus

A powerful and robust userscript designed to enhance the Testbook.com UI, aggressively block tracking scripts, and seamlessly crawl, extract, and convert full question papers into clean, beautifully formatted Markdown files.

Features

  • Comprehensive Extraction: Automatically navigates through sections and pagination to extract every question, its options, and the detailed solution.
  • MathJax Support: Safely extracts MathJax formulas and converts them into standard LaTeX $...$ and $$...$$ syntax, utilizing a custom element bypass to guarantee that complex commands and subscripts are never escaped by Turndown.
  • Code Formatting Preservation: Fenced code blocks (`) maintain their exact semantic whitespace and indentation during the markdown beautification process.
  • Table Normalization: Handles complex, ragged HTML tables, converting colspan correctly to satisfy GitHub-Flavored Markdown (GFM) requirements.
  • Surgical Clean-up: Automatically removes UI clutter (e.g., report buttons, avatars, tracking pixels) before conversion, ensuring the output is strictly educational content.
  • Advanced Network Blocking & CSP Resilience: Efficiently intercepts and blocks known tracking and analytics endpoints to speed up extraction. It includes a fallback mode that operates directly from the userscript context if the host site enforces strict Content Security Policies (CSP).
  • Dynamic Polling Engine: Reliably handles slow connections and lazy-loading pages by dynamically observing DOM changes instead of using fragile, fixed timeouts.
  • Intelligent Crawler Validation: Accurately scopes interaction targets (like the "Next" button) to the test interface, preventing accidental clicks on navigation palettes, and eliminates stale DOM reads during page transitions.
  • Caching Optimizer: Prevents heavy, redundant Markdown re-parsing on unchanged DOM elements, keeping the script lightweight and performant even for massive tests with over 300 questions.
  • Floating UI: Provides a sleek, unobtrusive Floating Action Button (FAB) that shows real-time progress of the extraction process, equipped with robust race-condition handling for rapid interactions.

Installation

  1. Install a userscript manager like Violentmonkey or Tampermonkey in your browser.
  2. Build the script by running npm run build or bun run build.
  3. Load the generated userscript file from the dist/ directory into your userscript manager.

Usage

  1. Navigate to a Testbook question paper (e.g., in Review mode or Active test mode).
  2. Wait for the page to fully load.
  3. Click the floating Download button in the bottom right corner of the screen.
  4. The script will automatically jump through the sections and extract the data.
  5. Once finished, a file named Testbook_Paper.md will be downloaded automatically.

Development

This project is built with TypeScript and Vite.

  • Install Dependencies: bun install
  • Dev Server: bun run dev
  • Build: bun run build

License

MIT License.