UserScriptから使えるscrapboxのobject
UserScriptから使える/icons/Scrapbox.iconのAPI
データ系
scrapbox.Page.title
現在開いているページのタイトル
scrapbox.Page.lines
現在開いているページ本文のJSONデータ
構文解析された情報も載っている
scrapbox.Page.id
用途不明
誰か書いて
現在開いているページのID
ページタイトルを変更しても変わらない
scrapbox.Project.pagesから特定のページを探すのに使える?
コミットログを取得するときに使う
scrapbox.Project.name
現在開いているprojectの名前
scrapbox.Project.pages
現在開いているprojectの全ページのJSONデータ
取得できるデータ
exists 空リンクかどうか
id ページのid
title ページのタイトル
titleLc ハッシュタグで使用するタイトルの文字列
が_に置換
大文字が小文字に変換
updated ページの更新日時
hasIcon 画像が含まれているページかどうか
scrapbox.Layout
現在開かれているページの種類を表す文字列
関数系
scrapbox.PageMenu.addMenu()
scrapbox.PageMenu()
scrapbox.PageMenu().addItem()
scrapbox.PageMenu().addMenu()
scrapbox.PageMenu().addSeparator()
scrapbox.PageMenu().removeAllItems()
scrapbox.PopupMenu.addButton()
scrapbox.TimeStamp.addFormat()
scrapbox.TimeStamp.removeAllFormats()
scrapbox.on()