Skip to content

pol-cova/Scope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scope icon

Scope

Highlight any text → right-click → instant docs in your sidebar.
No new tab. No context switch.

Manifest V3 Chrome 114+ MIT license


The problem

Every documentation lookup is 5 steps:

Select text → Copy → Open new tab → Paste into search → Lose your place

You do this ~30 times a day. Scope collapses it to 2: highlight → right-click.

Supported sources

Source Mode Covers
DevDocs Inline (default) JS, CSS, React, Node, Go, Ruby, and more
Python Docs Inline Python 3 standard library
MDN Web Docs New tab HTML, CSS, Web APIs
Can I Use New tab Browser compatibility
cppreference New tab C and C++ standard library

Switch source at any time from the sidebar dropdown or toolbar popup — preference is saved per-device.

Install

  1. Clone or download this repo
  2. Open chrome://extensions
  3. Enable Developer mode (top-right toggle)
  4. Click Load unpacked → select the Scope folder

Requires Chrome 114+ for the chrome.sidePanel API.

How it works

chrome.sidePanel.open() must be called synchronously inside the user-gesture callback — any await before it causes Chrome to throw "may only be called in response to a user gesture":

chrome.contextMenus.onClicked.addListener((info, tab) => {
  chrome.sidePanel.open({ tabId: tab.id }); // sync — no awaits before this

  chrome.storage.sync.get({ preferredSource: 'devdocs' }, ({ preferredSource }) => {
    chrome.storage.session.set({ scopeLookup: { ... } });
  });
});

The sidepanel picks up the data via chrome.storage.onChanged and renders instantly.

License

MIT

About

A Chrome extension that lets you highlight any word or phrase on any webpage, right-click it, and instantly open a sidebar with the relevant documentation — no new tab, no context switch.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors