ブラウザの拡張機能(アドオン)である“Stylus”(Chrome版 / Firefox版)を使って、ウェブサイトの外観を変えることができます。
この記事では、その使用例として、Dynalistのメニューの中にある任意の機能を非表示にするCSSを紹介します。
Stylus自体の使い方の解説は、下記の記事をご覧ください。
〈目次〉
概要
PC版のブラウザでDynalistを開いて、各項目の行頭にマウスカーソルを合わせると、≡
の形のアイコンが現れ、それをクリックすると、下記のようなメニューが表示されます。
このメニューの中の不要なものを、画面上に表示しないようにします。
非表示にしたサンプル
各メニューを非表示にするためのCSS
メニュー内の各項目を非表示にするためのCSSは、下記のとおり約50個あります。
なお、これらを1つにまとめた状態のCSSをGistに置いてあります。CSSの全体を一挙にコピーしたい場合はそちらからコピーするほうがラクだと思います。
Collapse
li.MenuItem--collapse{display:none !important}
Collapse All
li.MenuItem--collapseAll{display:none !important}
Expand
li.MenuItem--expand{display:none !important}
Expand all
li.MenuItem--expandAll{display:none !important}
Expand to level
li.MenuItem--expandToLevelParent{display:none !important}
Level 1
li[data-level="1"]{display:none !important}
Level 2
li[data-level="2"]{display:none !important}
Level 3
li[data-level="3"]{display:none !important}
Level 4
li[data-level="4"]{display:none !important}
Collapse all siblings
li.MenuItem--collapseSiblings{display:none !important}
Expand all siblings
li.MenuItem--expandSiblings{display:none !important}
Zoom in
li.MenuItem--zoomIn{display:none !important}
Add note
li.MenuItem--addNote{display:none !important}
Delete
li.MenuItem--deleteNode{display:none !important}
Delete checked items
li.MenuItem--deleteCheckedNodes{display:none !important}
Add to bookmarks
li.MenuItem--bookmarkNode{display:none !important}
Sort
li.MenuItem--sortChildren{display:none !important}
Title (A to Z)
li.MenuItem--sortTitleAsc{display:none !important}
Title (Z to A)
li.MenuItem--sortTitleDesc{display:none !important}
Date (new to old)
li.MenuItem--sortDateDesc{display:none !important}
Date (old to new)
li.MenuItem--sortDateAsc{display:none !important}
Unchecked first
li.MenuItem--sortCheckedStatusAsc{display:none !important}
Checked first
li.MenuItem--sortCheckedStatusDesc{display:none !important}
Edited (new to old)
li.MenuItem--sortEditedTimeDesc{display:none !important}
Edited (old to new)
li.MenuItem--sortEditedTimeAsc{display:none !important}
Created (new to old)
li.MenuItem--sortCreatedTimeDesc{display:none !important}
Created (old to new)
li.MenuItem--sortCreatedTimeAsc{display:none !important}
Reverse current
li.MenuItem--reverseCurrent{display:none !important}
Search and replace...
li.MenuItem--searchReplace{display:none !important}
Indent
li.MenuItem--indent{display:none !important}
Unindent
li.MenuItem--unindent{display:none !important}
Move to...
li.MenuItem--moveNode{display:none !important}
Insert template...
li.MenuItem--insertTemplate{display:none !important}
Add checkbox
li.MenuItem--showCheckbox{display:none !important}
Add checkbox to children
li.MenuItem--addCheckboxToChildren{display:none !important}
Remove checkbox
li.MenuItem--hideCheckbox{display:none !important}
Remove checkbox to children
li.MenuItem--removeCheckboxFromChildren{display:none !important}
Check off
li.MenuItem--check{display:none !important}
Uncheck
li.MenuItem--uncheck{display:none !important}
Number Children
li.MenuItem--makeNumberedList{display:none !important}
Stop numbering children
li.MenuItem--unmakeNumberedList{display:none !important}
Manage sharing...
li.MenuItem--shareRootNode{display:none !important}
Get link
li.MenuItem--getLink{display:none !important}
Show all references
li.MenuItem--showReferences{display:none !important}
Export...
li.MenuItem--exportNode{display:none !important}
Set as inbox
li.MenuItem--setAsInbox{display:none !important}
Color label(項目ごとの背景色)
ul.set-color-label-menu{display:none !important}
見出し化ボタン(H1, H2, H3)
ul.set-heading-level-menu{display:none !important}
関連記事
Stylusの使用例を紹介した記事として、こちらもあります。