
A small Obsidian plugin to hide the Obsidian Bases toolbar and lock header interaction on demand.
You can quickly switch the state by clicking the Lock / Unlock button.
Note: The plugin only works in Reading view.

You can install this plugin directly from Obsidian’s community plugins browser:
You can also install it directly from the community plugins page:
Install from community plugins
<Vault>/.obsidian/plugins/obsidian-bases-lock/
Copy these files into that folder:
main.jsmanifest.jsonOpen Obsidian:
Make sure the official Bases core plugin is enabled.
npm install
npm run dev
npm run build
After building, the latest main.js will be generated in the plugin root folder for Obsidian to load.
.bases-toolbar, .bases-header, .bases-thead, etc.) depend on the current Obsidian Bases DOM structure:styles.css..base embed syntax (|x / |o) in the current document and does not scan or modify other notes.Assume src/a.base is embedded in any of the following forms:
![[src/a.base]]After clicking the button:

![[src/a.base]]), the file name (without the .base suffix) will be used:![[src/a.base]] → 
, it will be changed to:
At the same time:
x → hide toolbar + disable .bases-thead click, button text shows lockedo → restore toolbar and header interaction, button text shows unlocked