Quick bubble Search (Google search, image search & Youtube)

AnkiWeb addon 458766448

Selecting a word or phrase on a card pops up floating icons that open YouTube, Google Images, Google, or custom website searches in the browser.
AI-generated summary; may contain mistakes.

dictionary

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-08-30
Anki versions
25.09~
License
MIT (from the GitHub repository)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JavaScript, JSON
Description language
en

Maintenance

active

  • Last update or commit: 2026-08-30 (63 days before the snapshot).
  • GitHub Actions workflows: 1.
  • Commits in the last year: 13.
  • Issues: 0 open, 0 closed.
  • Pull requests: 0 open, 0 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.4525.09+2026-08-30
History across monthly snapshots

Loading…

Similar addons

Instant Context Search: Google Images, Reverso & More

Adds a reviewer right-click menu to search selected card text on Google Images, Reverso Context, WordReference, Google Translate, Wikipedia, Wiktionary, and Cambridge Dictionary, opening results in the browser.

dictionary

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 Anki 2.1.1~ Updated 2025-12-06
Quick Dictionary Lookup

Looks up definitions of selected words and phrases during review via the macOS dictionary, opened with Cmd+D instead of a context menu.

shortcutsdictionary

4 votes 51% approval πŸ‘ 4 Β· πŸ‘Ž 0 Anki 2.1.16~ Updated 2020-02-21
Ankipedia – Wikipedia tooltips in your answer cards!

Adds hoverable Wikipedia tooltips with definitions and images to underlined terms in flashcards during review, with configurable language, appearance, class targeting, and blocked-word lists.

dictionary

2 votes 34% approval πŸ‘ 2 Β· πŸ‘Ž 0 ⭐ 10 Anki 25.02.1~ Updated 2025-04-30

Description

Click a word on a card and small YouTube, Google Images and Google icons appear right next to it. One click opens the search in your browser.

Handy when a card needs a picture or a real-world example: click the word, click the icon, done. Any other website can be added in the settings, with its own icon.

How to use

  1. Click any word on the card - it gets selected and the icons appear above it.
  2. Click the icon you want.

Dragging across a whole phrase works too. Esc, scrolling, or clicking somewhere else makes the icons go away.

Prefer the old way? The same searches are also in the right-click menu, under Context Search (YouTube & Google Images).

Where it works

  • the floating icons: while reviewing (question and answer side), in the card previewer and in the card layout screen
  • the right-click menu: everywhere above, plus the note editor (Add and Browse) and the reviewer More menu (m key)

Nothing shows up until there is actually a selection, so it stays out of your way while you study. Both the icons and the menu can be switched off separately in the config.

The selection is cleaned up first

  • {{c1::word}} is searched as word
  • [sound:...] tags are removed
  • multi-line selections become a single line
  • quotes, brackets and commas around the selection are trimmed

Settings

Tools > Context Search (YouTube & Google Images)..., or the Config button next to the add-on in Tools > Add-ons.

Add any website you like. Give it a name, paste the search URL with {query} where the word belongs, pick an icon, and hit Test to try it once before saving:

https://en.wikipedia.org/w/index.php?search={query}

For icons you can use a built-in logo (YouTube, Google, Google Images, magnifying glass), a letter or emoji badge, or your own image file. Searches can be ticked, reordered and removed from the list.

You can also turn the floating icons off, choose whether they appear on a single click or only when you select text yourself, change the icon size, control the right-click menu per screen, and adjust how the selected text is cleaned up.

Google definitions, Forvo and YouGlish are already written in - just tick them.

Notes

  • Nothing is sent anywhere. The add-on only opens a search URL in your browser.
  • Works with Anki 2.1.45 and newer (tested on 25.09).

Source code, bug reports and feature requests: https://github.com/Nikhilsinha666/anki-context-search

README

ο»Ώ# Quick Bubble Search (Google & YouTube)

An Anki add-on. Double-click a word on a flashcard and small YouTube, Google Images and Google icons appear right next to it. One click opens the search in your browser. Any other website can be added from the settings.

Quick Bubble Search (Google & YouTube) in the reviewer

Two ways to use it:

  • Floating icons - double-click a word (or drag over a phrase) while reviewing, in the card previewer, or in the card layout screen. The icons show up next to the selection.
  • Right-click menu - the same searches, and this one also works in the note editor (Add and Browse) and in the reviewer More menu (m key).

Both only show up when there is actually a selection, so nothing gets in your way while you study. Either one can be switched off in the config.

Install

From AnkiWeb (recommended)

Tools > Add-ons > Get Add-ons... and paste the code 458766448, or open the add-on page.

From a release file

Download context_search.ankiaddon from the releases page, then double-click it, or use Tools > Add-ons > Install from file....

From source

  1. Tools > Add-ons > View Files - this opens .../Anki2/addons21.
  2. Copy the context_search folder into it.
  3. Restart Anki.

Usage

Icons

  1. Click any word on the card - it gets selected and the icons appear above it.
  2. Click the YouTube or Google Images icon.

Dragging across a phrase works too. Esc, scrolling, or clicking somewhere else dismisses the icons.

Right-click

  1. Select a word or phrase.
  2. Right-click it.
  3. Choose Quick Bubble Search (Google & YouTube) > YouTube: "..." or the Google Images: "..." entry next to it.

That submenu is named after the add-on. Shorten it with submenu_label in the config if it takes up too much room.

The search opens in your normal web browser.

The selection is tidied up before searching: {{c1::word}} is searched as word, [sound:...] tags are dropped, line breaks collapse into spaces, and surrounding quotes, brackets and commas are trimmed.

Settings

Tools > Quick Bubble Search (Google & YouTube)..., or the Config button next to the add-on in Tools > Add-ons.

Searches tab - tick the ones you want, reorder them, and add any website with Add...: a name, the search URL, and an icon. Test runs the search once so you can check the URL before saving.

Behaviour tab - turn the floating icons off, let a single click select a word as well (off by default, so only a double-click or a drag selects), set the icon size, control the right-click menu per screen, and adjust how the selected text is cleaned up.

Saving applies everything immediately, icons included.

Search URLs

Put a placeholder where the selected word goes:

Placeholder Encoding Example
{query} query string, spaces become + ?q={query}
{query_path} path segment, spaces become %20 /word/{query_path}/
{query_raw} no encoding special cases

Without a placeholder the encoded word is appended to the end of the URL.

Icons

A built-in logo (YouTube, Google, Google Images, magnifying glass), a letter or emoji badge, or your own image file. Chosen images are copied into user_files/icons/, which survives add-on updates.

Google definitions, Forvo and YouGlish ship pre-written but unticked. Every config key is documented in context_search/config.md for anyone who prefers editing config.json directly.

Development

context_search/       the add-on itself
  __init__.py         hooks, config and search logic
  settings.py         the settings dialog
  web/ctxsearch.js    the floating icon bubble (injected into the card webview)
  config.json         default settings
  config.md           reference for the config keys
  manifest.json       package id, name, version
  user_files/icons/   images added through the settings (not in git)
tools/check_addon.py  package sanity checks (no Anki needed)
build.ps1             builds dist/context_search.ankiaddon
docs/                 AnkiWeb description + publishing steps
screenshots/          images linked from the AnkiWeb page
python tools\check_addon.py   # validate the package
.\build.ps1                   # build dist\context_search.ankiaddon

How it works: webview_will_set_content injects web/ctxsearch.js plus a JSON config into the card webview, and the bubble is built inside a shadow root so note styling cannot reach it. Clicking an icon sends ctxsearch:<index>:<text> through pycmd, which webview_did_receive_js_message picks up. The right-click entries come from webview_will_show_context_menu, editor_will_show_context_menu and reviewer_will_show_context_menu, reading the selection with selectedText(). Either way the URL is opened with aqt.utils.openLink. Nothing is sent anywhere else.

Publishing steps live in docs/publishing.md.

License

MIT - see LICENSE.