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
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.
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:
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. ![]()
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. ![]()
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.
import os
from pathlib import Pathappdata = 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âŠâ)
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.