add zen mode

add zen mode
This commit is contained in:
Cody Williams
2022-02-14 00:18:58 -08:00
parent 5bacb570de
commit a97ce50415
2 changed files with 36 additions and 0 deletions

8
zenmode.js Normal file
View File

@@ -0,0 +1,8 @@
api.addButtonToToolbar({
title: 'Zen mode',
icon: 'fullscreen',
action: function() {
$("body").toggleClass("zen-mode");
},
shortcut: 'alt+z'
});