scrapboxオブジェクトの中身
UserScriptを書くときに参照できる。
scrapbox.PageMenu.addMenuのようなコードが機能するのは、そういうオブジェクトがあるから。
中身を確認する方法
https://twitter.com/stakiran2/status/1061459788905635841
とりあえず console.log(scrapbox) で覗いている。直感的に最低限整ってる感じで、リファレンス要らないかも?
code:script.js
Layout: Getter
​​
<get>: function setup()
​
Page: {…}
​​
lines: Getter
​​
title: Getter
​​
<prototype>: Object { … }
​
PageMenu: PageMenu()
​​
addItem: function addItem()
​​
addMenu: function addMenu()
​​
addSeparator: function addSeparator()
​​
length: 1
​​
name: ""
​​
prototype: Object { … }
​​
removeAllItems: function removeAllItems()
​​
<prototype>: function ()
​
PopupMenu: {…}
​​
addButton: function e()
​​
<prototype>: Object { … }
​
Project: {…}
​​
name: Getter
​​
pages: Getter
​​
<prototype>: Object { … }
​
TimeStamp: {…}
​​
addFormat: function e()
​​
removeAllFormats: function e()
​​
<prototype>: Object { … }
​
<prototype>: {…}
​​
__defineGetter__: function __defineGetter__()
​​
__defineSetter__: function __defineSetter__()
​​
__lookupGetter__: function __lookupGetter__()
​​
__lookupSetter__: function __lookupSetter__()
​​
constructor: function Object()
​​
hasOwnProperty: function hasOwnProperty()
​​
isPrototypeOf: function isPrototypeOf()
​​
propertyIsEnumerable: function propertyIsEnumerable()
​​
toLocaleString: function toLocaleString()
​​
toSource: function toSource()
​​
toString: function toString()
​​
valueOf: function valueOf()