|
This script activates for comment searches (http://danbooru.donmai.us/comment/search?) and pulls from the regular list instead.
Making the following rough additions seems to fix it (line before and after addition supplied for locating):
===================================
var pending = false;
if (/comment\/search/.test(window.location.href)) {
danbooruURL = window.location.href;//.replace(/&page=[0-9]+/,'');
danbooruQuery = '&page=';
}
var crlf = String.fromCharCode(10) + String.fromCharCode(13);
====================================
function findMainTable(doc) {
if (/comment\/search/.test(window.location.href)) return doc.getElementsByTagName("tbody")[0];
return doc.evaluate("//div[@id='comment-list']", doc, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue;
====================================
while ((child = source.childNodes[0])) {
if (child.className == "even" || child.className == "odd") {
document.getElementsByTagName("tbody")[0].appendChild(child);
continue;
}
if (child.className == "post") {
====================================
|