How to remove "View on AnkiHub" button?

Have seen this asked a few times and it was said to be being looked into as a feature in the addon itself. If the feature has not been added how do I remove it manually please?

Thanks

Thank you for reaching out! Our moderators have been notified and will assist you shortly. In the meantime, you can get an instant response from me simply by @ mentioning my username`. Alternatively, start a private conversation with me (see screenshot below). If you ask me a question, I will do my best to respond using only verified information found in the official AnkiHub docs and the Anki manual.

You can also find answers to common questions in our FAQ and Docs.

Thinking

Search
Found 1 result for ‘tags:official remove “View on AnkiHub” button order:latest_topic max_posts:10 status:open’

You’re right that this has been requested a few times; as far as I can see, there is no built‑in AnkiHub option yet to hide or remove the “View on AnkiHub” button on cards.

Because we don’t provide help with code edits or custom scripting here, I can’t safely walk you through manually modifying the add‑on files to remove it. Those kinds of changes also tend to break when the add‑on updates.

For now your options are:

  1. Leave the button as‑is and ignore it (safest, won’t break with updates).
  2. Watch the feature requests / changelog on the forum and AnkiHub docs so you’ll know if a “hide button” setting is added in a future version.
  3. If you haven’t already, open or upvote a feature request specifically for:

    Add a toggle to hide the “View on AnkiHub” button on cards
    so the devs can see the demand and possibly prioritize it.

If you share what your main concern is with the button (visual clutter, performance, accidental clicks, etc.), I can suggest possible Anki-side workarounds (e.g., card template layout changes, using different note types, etc.) that don’t involve directly editing the AnkiHub add‑on code.

Hello,

I would be happy to help. :slight_smile:

I’m sorry to say that I’m not aware of a way to remove the button given the current add-on.

I’d be happy to pass the suggestion along to developers for future consideration, though, and if there is anything else we can help with or any other questions I can answer for you I’d be happy to be of help however else I can. :mending_heart:

Hello,

I got AI to write a python script to do this for me so I can just click it since the changes to the code won’t persist when ankihub updates. Pasting instructions here in case this helps anyone else.

  1. Ensure you have Python downloaded
  2. New text document
  3. Copy and paste:

import os
from pathlib import Path

appdata = os.getenv(“APPDATA”)
if appdata:
base_dir = Path(appdata) / “Anki2”
elif Path.home().joinpath(“Library/Application Support/Anki2”).exists():
base_dir = Path.home() / “Library/Application Support/Anki2”
else:
base_dir = Path.home() / “.local/share/Anki2”

reviewer_py = base_dir / “addons21” / “1322529746” / “gui” / “reviewer.py”
target = “reviewer_did_show_question.append(_add_or_refresh_view_note_button)”

if not reviewer_py.exists():
print(f"Error: Could not find {reviewer_py}“)
else:
text = reviewer_py.read_text(encoding=“utf-8”)
if f”# {target}" in text or f"#{target}" in text:
print(“Already commented out! The button is already disabled.”)
elif target in text:
reviewer_py.write_text(
text.replace(target, f"# {target}"), encoding=“utf-8”
)
print(“Success! Restart Anki for the change to take effect.”)
else:
print(“Could not find the target hook in reviewer.py.”)

input(“\nPress Enter to close this window
”)

  1. Save as e.g. “Hide AnkiHub Button”.py
  2. Run it
  3. Restart Anki
  4. Success

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.