Git Product home page Git Product logo

siyuan_rmv_btn's Introduction

siyuan_rmv_btn

A SiYuan Plugin that able to remove the buttons in menu that you don't really use.
It currently support removing top bar icons, side bar icons, and menus with id commonMenu, which are two icons on top right corner of each doc, and calling from the right side of each paragraph.

Download

go to release page or go to SiYuan's market and search siyuan_rmv_btn

changelog 1.1.0 2024.01.12

  • add icons for reference in setting panel
  • not anymore detect or read old config
  • delete config data after uninstall, but not when turn off plugin

changelog 1.1.3 2024.01.27

  • fix warning in editor
  • add custom window control button reload
  • add custom window control button custon position
  • add custom window control button custom layout

changelog 1.1.5 2024.03.12

  • add docker support

changelog 1.1.6 2024.03.19

  • fix issue that you can still select item by up and down arrow key on keyboard after hiding.

changelog 1.1.7 2024.04.30

  • add command palette button

Warning

  • If you removed too much items and end up stopped working, please go to your workspace and delete the entire siyuan_rmv_btn folder.
  • The handler handle main interface of SiYuan as soon as DOM changes. In which case if you added too many items, the performance would be influenced.
  • This plugin didn't do extra work to prevent JS injection, in which case you should be more careful using it when in browser or hosted in public net.
  • If items you are trying to hide is related to SiYuan's commercial part, please consider to donate to @D and @V (not me) because they lives by writing open-source codes.
  • No garenteen for 3rd party themes.

Links

repo/Source Code:https://github.com/zxkmm/siyuan_rmv_btn

Download:https://github.com/zxkmm/siyuan_rmv_btn/releases or search siyuan_rmv_btn in SiYuan market

Reporting Bugs / Submitting Feqture request:https://github.com/zxkmm/siyuan_rmv_btn/issues

Forum / thread (Chinese):https://ld246.com/article/1701669406727

Note

Please star⭐ my GitHub repository if you like this plugin. https://github.com/zxkmm/siyuan_rmv_btn

TODO

  • friendly interface

Credits

SiYuan (in b3log)

@muhanstudio (in b3log)

@TCOTC (in b3log)

@Wetoria (in b3log)

@zxhd863943427 (in b3log)

Additional Attachment to MIT License

You are free to use the code in this repository, regardless of whether it's closed source or not, or whether it's part of paid software or not. However, I have incorporated these additional requests into the license of this repository. If you use the code, design, text, algorithms, or anything else from this repository, you must include my username "zxkmm" and the link to this repository in three places:

  1. In the code comments.
  2. In the settings interface related to my code.
  3. On the 'About' page of your software/website/and or any other format of computer production.

siyuan_rmv_btn's People

Contributors

zxkmm avatar tcotc avatar

Stargazers

 avatar  avatar SpadeKTLSG avatar  avatar DorisCoffey avatar InnerPeace avatar babalababa avatar 尚 avatar heoi_WG avatar  avatar 烁杰 avatar  avatar  avatar  avatar pakeh2866 avatar 蜗牛侠 avatar lucky avatar  avatar kursk avatar Ryan Laf avatar SenLief avatar  avatar  avatar  avatar RocketGod avatar

Watchers

 avatar InnerPeace avatar

Forkers

tcotc

siyuan_rmv_btn's Issues

文本输入框放置到下方

我看了一下代码发现我不会改。

总之就是有文本输入框的时候,要把文本输入框放置到下方

image

还有 关于 部分也要改一下:

image

Lost config after update (No uninstall handler for plugin system)

更新之后配置不显示了,但在 data\storage\petal\siyuan_rmv_btn 路径下还能找到3个文件存着配置。

按照一闪而过的蓝色提示(才看两行字提示就没了)重装了之后, data\storage\petal\siyuan_rmv_btn 路径下原本那三个配置文件也消失了。

image

image

要隐藏的侧栏按钮包含 tag 时,文档内的标签也会被隐藏

要隐藏的侧栏按钮包含 tag 时,文档内的标签也会被隐藏。

重现步骤:

  1. 新建一个工作空间
  2. 新建一个文档,在文档内创建标签
  3. 下载并启用插件,在插件设置「要隐藏的侧栏按钮」中填写:tag ,然后保存设置
  4. 现在发现刚才创建的标签被隐藏了
  5. 此时禁用插件,发现刚才创建的标签可以显示出来了
  6. 再启用插件,标签仍然可以显示
  7. 关闭再打开思源,发现标签又被隐藏了

经测试,使用 DOMNodeInserted 、 MutationObserver 和 MutationObserver(type hard coded) 都有这个问题。


设置:

image

打开插件前:

image

打开插件后:

image

Capability to hide items in slash menu

编辑器里按“/",会出现快捷功能菜单,能否隐藏这个菜单中的内容呢?我想把”AI Chat"去除掉。国内根本用不了Open AI。
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.