Bỏ qua đến nội dung

Hide editor elements (by id, class, CSS selector)

Chờ xử lý #anki #addon #hide #editor #elements #class #css
https://forums.ankiweb.net/t/hide-buttons-in-the-editor/14711
26/4/2022

Cách tải addon Hide editor elements (by id, class, CSS selector)

Bạn có thể tải addon bằng một trong hai cách sau:

Click nút Copy bên dưới để copy code vào clipboard

1931020967

Sau đó mở Anki → Tools → Add-ons → Get Add-ons → Dán code → OK

Mở trang addon trên AnkiWeb và tìm mã code ở cuối trang

Mở trên AnkiWeb

Cuộn xuống cuối trang AnkiWeb, tìm dòng có mã code 1931020967 và copy

3

Mô tả chi tiết

Hide HTML elements in the editor (e.g. to free space for add-on buttons).

Just put the appropriate selector (id, class, CSS selector) into the config and this simplistic add-on will hide these elements for you.

To find the right selectors, use AnkiWebView Inspector.


Liên kết hỗ trợ


Reviews (2)

👍 2022-04-27

Very useful. It hides unused buttons / icons in editor, which makes editor less cluttered. Thanks to this I don’t have to look for a proper icon in a long list of them. This is important when someone uses other add-ons that have their own icons. And thank you for your support on forum.

👍 2021-12-07

Lovely. This seems to work great. Many thanks!

If for instance you’d like to hide your buttons in the menu of the Editor, add the following between the brackets after “classes” in the configuration:

“container-fluid pb-1 pt-1 svelte-6fejev”

(Note that there are 2 spaces between “pt-1” and “svelte-6fejev” above.)

See also https://forums.ankiweb.net/t/14711/.

I use Anki 2.1.49 on macOS 11.6.