Skip to content

dipeshio/pdf-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modular Feature Extension

A lightweight, modular browser extension framework with toggleable features.

Features

Module Description
📄 PDF Inline Viewer Force PDFs to open in browser instead of downloading
📝 Document Viewer View Word, Excel, PowerPoint files inline via Google Docs

Installation

  1. Open chrome://extensions/ (or edge://extensions/)
  2. Enable Developer mode
  3. Click Load unpacked → select this folder

Usage

Click the extension icon → toggle features on/off. Changes apply immediately.


Adding a New Module

1. Register in both files

background.js — Add to MODULES array with id, name, description, icon, defaultEnabled, and ruleIds.

popup/popup.js — Add matching entry (without ruleIds).

2. Add toggle handler

In background.js, add a case in handleModuleToggle() that calls your module's toggle function.

3. Implement logic

Create your toggleFeatureBModule(enabled) function with enable/disable logic.


Project Structure

├── manifest.json       # Extension config
├── background.js       # Service worker
├── popup/              # Toggle UI
└── icons/              # Extension icons

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published