Skip to content

YoshifumiFuyuno/Search-from-Popup-or-ContextMenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

Search from Popup or ContextMenu (SPC)

This WebExtension is a fork of "Swift Selection Search (SSS)".
This is a customized version of SSS for my own use.

When you select text or image on a webpage, you can quickly search from the popup or contextmenu.

By default, popup appears when you drag an image, selected text, or link, but you can choose from the following behaviors.
"Popup/icons behaviour" -> "Opening behaviour":
(Off / Auto / Hold Alt / Keyboard-only / Middle mouse button / Click / Drag)

There are Firefox and Microsoft Edge versions.
Microsoft Edge version also works with Chromium-based browsers such as Google Chrome, but there's no technical support.

Install

Privacy policy

  • Search query are not saved.
  • You can use suggest(Google or DuckDuckGo or Qwant or Bing or Яндекс(Yandex) or 百度(Baidu)) in the popup search box or omnibox search, but you can disable it in the settings.
    "Popup/icons behaviour" -> "Enable search box suggest"
  • If you set your favicon to data: scheme and disable suggest, this extension will not access the network at all.
    • exception
      • If you add a search engine from the context menu or options page, cache the favicon as data: scheme.
      • When adding a search engine from the context menu, if the normal addition is not possible, get OpenSearch if the site supports it.
      • Processes performed by the browser (update and synchronization).

Different

  • Fork Changes (Based on SSS Version 3.33.0):
    • Now works with Chromium-based browsers such as Microsoft Edge and Google Chrome.
    • The site's Content Security Policy(CSP) does not change.
      (Original Extension(SSS) rewrites CSP to "unsafe-inline" after Ver.3.40.0)
    • You can search on multiple search engines at once.
    • support POST Method search engine.
    • support search engine folder management.
    • added highlighting and auto-scrolling features.
    • added the ability to highlight even if not via this add-on.
    • added function to launch external applications (other browsers, yt-dlp, etc.).
    • added Popup Style ("Icon only" / "Icon and Name" / "Name only").
      (At "Icon only", the display mode can be temporarily switched by double-clicking)
    • support Bookmarklet. You can use Bookmarklet APIs.
      (It can also be executed automatically when the popup is displayed) / (You can also import bookmarklets from your Bookmarks)
    • added Search box to Popup.
    • added omnibox search.
    • support suggestions from Google or DuckDuckGo or Qwant or Bing or Яндекс(Yandex) or 百度(Baidu) in the popup search box or omnibox search.
    • added Hotkey search.
    • added a function to easily add a search engine from the text box context menu.
    • added search URL {linkurl}. {linkurl} is supports "Advanced usage".
      (Used when you want to search by link URI. You can do the same by holding down the Ctrl key when searching from the context menu)
    • If no text is selected, the Clipboard Text is searched.
    • Context menu display options.
    • You can also search by link text or image URL.
    • added Popup Opening behaviour "click" / "drag"
    • added "Popup/icons behaviour" -> "Right mouse button click" / "Right mouse button Long-click" / "Left mouse button Long-click"
    • added "Context menu" -> "Middle mouse button click" / "Right mouse button click"
    • added Open in Window ("reuse new window" / "reuse new background window" / "new incognito (private) window" / "reuse new incognito(private) window" / "new background incognito(private) window" / "reuse new background incognito(private) window" / "new popup window" / "reuse new popup window" / "new background popup window" / "reuse new background popup window" / "sidebar (tab-specific)" / "sidebar (window-specific)" / "sidebar (global)")
      (sidebar UserAgent can be changed) / (The Popup window can be closed automatically.(Off/LostFocus/Mouseleave)).
    • added Open in Tab ("reuse active tab" / "reuse new tab" / "reuse new background tab" / "reuse new tab (next to current tab)" / "reuse new background tab (next to current tab)" / "LazyLoad new background tab" / "LazyLoad new background tab (next to current tab)")
    • added Ability to show last used engine first in popup.
    • added Hide Popup with ESC key etc.
    • added browserAction.
    • Allow "open-popup" Command to display popup even if no string is selected.
    • support charset (UTF-8, RAW(GET method only), Shift_JIS(SJIS), EUC-JP, ISO-2022-JP(JIS), windows-1251, windows-1252(ISO-8859-1), Big5, GB18030).
    • When the OS is set to dark mode, the option page is displayed in dark mode.
  • Import/Export Compatibility with the Original Extension Ver.3.33.0:
    • Import can also import file from the Original Extension.
    • File exported by SPC is not compatible with the Original Extension Search engines setting.
  • Permissions different from Original Extension Ver.3.33.0:
    • removed permissions: downloads, webNavigation.
    • added permissions: clipboardRead(Clipboard text search), unlimitedStorage(data: scheme icons).
    • added optional_permissions: bookmarks(Import bookmarklet), webRequest(Sidebar user agent), webRequestBlocking(Sidebar user agent), nativeMessaging(Launch external applications).
    • From normal permissions to optional_permissions: clipboardWrite(copyToClipboard As Html/Text).

ChangeLog

https://addons.mozilla.org/firefox/addon/searchfrompopuporcontextmenu/versions/

Contact

If you have any requests or issues, please GitHub Issues in Japanese or your first language.
It is easy to understand if there is a screenshot etc.

License

Copyright © 2019 Yoshifumi Fuyuno

Acknowledgment

I would like to take this opportunity to express my appreciation to developers.

Original Extension:
Swift Selection Search by Daniel Lobo
https://addons.mozilla.org/firefox/addon/swift-selection-search/
Original Extension License: MIT License

About

WebExtension

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published