An open API service indexing awesome lists of open source software.

https://github.com/emvaized/open-in-popup-window-extension

Tiny browser extension which allows to open any links and images in a popup window, with many features and settings
https://github.com/emvaized/open-in-popup-window-extension

browser chrome-extension chrome-extensions extension firefox popup-window

Last synced: 3 months ago
JSON representation

Tiny browser extension which allows to open any links and images in a popup window, with many features and settings

Awesome Lists containing this project

README

          

# Open in Popup Window

[![Mozilla Add-on Version](https://img.shields.io/amo/v/open-in-popup-window?label=version&color=red)](./CHANGELOG.md)
[![Chrome Web Store](https://img.shields.io/chrome-web-store/users/gmnkpkmmkhbgnljljcchnakehlkihhie?label=users&logo=googlechrome&logoColor=white&color=blue)](https://chrome.google.com/webstore/detail/open-in-popup-window/gmnkpkmmkhbgnljljcchnakehlkihhie)
[![Mozilla Add-on](https://img.shields.io/amo/users/open-in-popup-window?color=%23FF6611&label=users&logo=Firefox-Browser)](https://addons.mozilla.org/firefox/addon/open-in-popup-window/)
[![](https://img.shields.io/badge/dynamic/json?label=users&query=%24.activeInstallCount&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Fongbhnbepfbmoabelbmjppkjhiboicgp&logo=data:image/svg+xml;base64,PHN2ZyByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGl0bGU+TWljcm9zb2Z0IEVkZ2U8L3RpdGxlPjxwYXRoIGZpbGw9IndoaXRlIiBkPSJNMjEuODYgMTcuODZxLjE0IDAgLjI1LjEyLjEuMTMuMS4yNXQtLjExLjMzbC0uMzIuNDYtLjQzLjUzLS40NC41cS0uMjEuMjUtLjM4LjQybC0uMjIuMjNxLS41OC41My0xLjM0IDEuMDQtLjc2LjUxLTEuNi45MS0uODYuNC0xLjc0LjY0dC0xLjY3LjI0cS0uOSAwLTEuNjktLjI4LS44LS4yOC0xLjQ4LS43OC0uNjgtLjUtMS4yMi0xLjE3LS41My0uNjYtLj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yNC0xLjExLjM2LS41OC4xMy0xLjE2LjEzLS40MiAwLS45Ny0uMDMtLjU0LS4wMy0xLjEtLjEyLS41NS0uMS0xLjA1LS4yOC0uNS0uMTktLjg0LS41LS4xMi0uMDktLjIzLS4yNC0uMS0uMTYtLjEtLjMzIDAtLjE1LjE2LS4zNS4xNi0uMi4zNS0uNS4yLS4yOC4zNi0uNjguMTYtLjQuMTYtLjk1IDAtMS4wNi0uNC0xLjk2LS40LS45MS0xLjA2LTEuNjQtLjY2LS43NC0xLjUyLTEuMjgtLjg2LS41NS0xLjc5LS44OS0uODQtLjMtMS43Mi0uNDQtLjg3LS4xNC0xLjc2LS4xNC0xLjU1IDAtMy4wNi40NVQuOTQgNy41NXEuNzEtMS43NCAxLjgxLTMuMTMgMS4xLTEuMzggMi41Mi0yLjM1UTYuNjggMS4xIDguMzcuNThxMS43LS41MiAzLjU4LS41MloiLz48L3N2Zz4=&logoColor=white)](https://microsoftedge.microsoft.com/addons/detail/open-in-popup-window/ongbhnbepfbmoabelbmjppkjhiboicgp)
[![Chrome Web Store rating](https://img.shields.io/chrome-web-store/rating/gmnkpkmmkhbgnljljcchnakehlkihhie)](https://chrome.google.com/webstore/detail/open-in-popup-window/gmnkpkmmkhbgnljljcchnakehlkihhie/reviews)
[![Chrome Web Store](https://img.shields.io/chrome-web-store/rating-count/gmnkpkmmkhbgnljljcchnakehlkihhie?style=flat&label=reviews)](https://chrome.google.com/webstore/detail/open-in-popup-window/gmnkpkmmkhbgnljljcchnakehlkihhie/reviews)
![Created](https://img.shields.io/github/created-at/emvaized/open-in-popup-window-extension?color=darkgrey&label=created)

This tiny and lightweight browser extension provides ability to quickly preview links without leaving the current page context. It adds entry in context menu of links, and when clicked, opens new small window at cursor position, with no tab bar and addressbar.

This extension is intended to be used as an analogue of Safari Link Preview, Arc Peek or Zen Glance. It's a great way to preview links, which works everywhere and is not affected by the CORS problem like other extensions which are using `iframe` element for the link preview.

Get for Chrome   Get for Firefox

Features

- [x] Open links, images and search selected text in a popup window
- [x] Configurable popup height, width and default position on the screen
- [x] Several ways to open in popup window:
- [x] Context menu
- [x] Keyboard hotkeys ([more info](https://github.com/emvaized/open-in-popup-window-extension/wiki/FAQ-(Frequently-Asked-Questions)#what-keyboard-hotkeys-are-available))
- [x] Drag and drop
- [x] Modifier key + left click (possible options: Shift / Ctrl / Alt / Meta)
- [x] Double press modifier key when item is hovered
- [x] Long click mouse button (left/middle/right)
- [x] Click on toolbar icon (search/open current page in popup)
- [x] Super lightweight, with content script being less then 10 KBs
- [x] Advanced Image Viewer with GIF playback control
- [x] Close popup window when origin window regains focus (excludes minimized and "always-on-top" windows)
- [x] Dim page when popup window is opened
- [x] Remember popup window size on manual resize (_only Chrome_ ~ [Firefox bug report](https://bugzilla.mozilla.org/show_bug.cgi?id=1762975))
- [x] Open popup page in the main window on maximize (_only Chrome_ ~ [Firefox bug report](https://bugzilla.mozilla.org/show_bug.cgi?id=1762975))
- [x] Automatically reopen new single tab windows, and tabs opened by page, as popup windows (like [Little Arc](https://resources.arc.net/hc/en-us/articles/19235387524503-Little-Arc-Quick-Lookups-Instant-Triaging)) — [more info here](https://github.com/emvaized/open-in-popup-window-extension?tab=readme-ov-file#how-to-use-the-new-feature-reopen-new-single-tab-windows-as-popup-windows)

## Screenshots

Options page

## Support project ❤️
If you really enjoy this project, please consider supporting its further development by making a small donation using one of the options below!

Support on Ko-fi   Patreon   Donate using Liberapay   Donate Bitcoin

## Troubleshooting
If "Open by drag" and "Mod+click to open" options not working, or the popup window always gets positioned in the top left corner no matter the placement settings, please make sure you gave extension all permissions to run on every page you visit!

## FAQ (Frequently Asked Questions) ⚠️
See answers to some common questions on the [Wiki page](https://github.com/emvaized/open-in-popup-window-extension/wiki/FAQ-(Frequently-Asked-Questions))

## Building
- `npm install` to install all dependencies
- `npm run build` to generate `dist` folder with minimized code of the extension, or
- `npm run build.chrome` to create chromium-specific version with few changes

## Ideas for future releases
- [ ] Option to keep popup windows always on top (_improssible until_ [bug report](https://github.com/w3c/webextensions/issues/443))
- [ ] Option to open popup windows in _incognito_ mode
- [ ] Use text selection coordinates to align the "search" popup window when opened with keyboard shortcut
- [ ] Option to translate selected text in popup window, with dedicated keyboard hotkey

## Privacy
This extension doesn't collect any private data. It requires access to currently open page in order to fetch information about the object under cursor and the screen coordinates, as well as inject scripts for custom triggers (drag and drop, shift+click etc). Without such access, only opening popups from context menu will work, but the popup positioning might be incorrect.

## Some of my other projects
* [SelectON](https://github.com/emvaized/selecton-extension) – smart popup with actions on text selection
* [Circle Mouse Gestures](https://github.com/emvaized/circle-mouse-gestures) – better mouse gestures, with visual representation of all available actions
* [Text reflow on zoom](https://github.com/emvaized/text-reflow-on-zoom-mobile) – userscript and mobile browser extension which reflows all text after a pinch gesture
* [Modern Inverted Mouse Cursors](https://www.patreon.com/emvaized/shop/modern-inverted-mouse-cursors-for-10-11-924356) – cursor pack for Windows 10/11 which inverts all colors behind cursors