AutoPagerize0.0.18 - SWDYHより、 siteinfoにinsertBeforeがなくてもいいようにしました。 とあって、実装は下記のようになっている。 if (info.insertBefore) { this.insertPoint = getFirstElementByXPath(info.insertBefore) } else { var lastPageElement = getElementsByXPath(info.pageElement).pop() if (lastPageElement) { this.insertPoint = getFirstElementByXPath('following-sibling::node()', lastPageElement) } } .insertBeforeが空だったら、{{pageElementの最後の