Skip to content

emvaized/open-in-popup-window-extension

Repository files navigation

Open in Popup Window

Mozilla Add-on Version Chrome Web Store Mozilla Add-on Chrome Web Store rating Chrome Web Store 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

  • Open links, images, search and translate selected text in a popup window
  • Configurable popup height, width and default position on the screen
  • Several ways to open in popup window:
    • Context menu
    • Keyboard hotkeys (more info)
    • Drag and drop
    • Modifier key + left click (possible options: Shift / Ctrl / Alt / Meta)
    • Double press modifier key when item is hovered
    • Long click mouse button (left/middle/right)
    • Click on toolbar icon (search/open current page in popup)
  • Super lightweight, with content script being less then 10 KBs
  • Advanced Image Viewer with GIF playback control
  • Close popup window when origin window regains focus (excludes minimized and "always-on-top" windows)
  • Dim page when popup window is opened
  • Remember popup window size on manual resize (only Chrome ~ Firefox bug report)
  • Open popup page in the main window on maximize (only Chrome ~ Firefox bug report)
  • Automatically reopen new single tab windows, and tabs opened by page, as popup windows (like Little Arc) — more info here

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

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)
  • 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

About

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

Topics

Resources

License

Stars

57 stars

Watchers

2 watching

Forks

Sponsor this project

Contributors