Skip to content

Discord-ID/Quest-Widget-Extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quest Widget Extension

A Chrome Extension designed to scrape your Quest statistics (completed quests list and active Orbs balance) from the Discord Web app in the background, syncing them directly to your companion Next.js dashboard backend (Quest Widget).


✨ Features

  • Token Interception: A script (inject.js) intercepts the active Discord authorization token and telemetry headers directly from the window context.
  • Background Operations: Runs completely in the background without injecting floating badges or overlays into the Discord webpage.
  • Auto-Sync Triggers: Automatically updates stats when browsing:
    • /quest-home (Quests center)
    • /shop (Shop page)
  • Rate Limiting: Uses a 10-second cooldown lock to prevent duplicate API requests.
  • Popup UI: Dark-themed popup panel to save, read, and manage your Secret Sync Key.

📁 File Structure

  • manifest.json: Configuration for content scripts, permissions, and popup window.
  • content.js: Isolated content script that triggers the scrape, communicates with inject.js, and pushes stats to the backend.
  • inject.js: Intercepts Discord token and window headers.
  • popup.html & popup.js: UI panel to save and connect the secret sync key to chrome.storage.local.

📦 Loading the Extension

  1. Clone or download this repository.
  2. Open Google Chrome and go to chrome://extensions.
  3. Toggle on Developer mode in the top-right corner.
  4. Click Load unpacked in the top-left corner.
  5. Select the root folder of this repository.

🔧 How to Use

  1. Open your dashboard (Quest Widget Dashboard), connect your Discord account, and copy your Secret Sync Key.
  2. Click the extension icon in your browser toolbar to open the popup.
  3. Paste the key and click Save & Connect.
  4. Browse to discord.com/shop or quests page to trigger background synchronization.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors