Changeset 17022 for lang/javascript/userscripts
- Timestamp:
- 08/03/08 20:23:53 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/hatena.haiku.expandrepliestree.user.js
r17021 r17022 143 143 // remove unnecessary tags 144 144 var t = h(data.responseText.replace(/<\/?(?:script|i?frame)[^>]*>/g, "")); 145 return parallel($X(".//div[@class='entries']/div[@class='entry' ]", t).map(appendAndLoadNext));145 return parallel($X(".//div[@class='entries']/div[@class='entry' and not(@class='ad')]", t).map(appendAndLoadNext)); 146 146 }); 147 147 … … 156 156 // 時系列に並ぶ様に注意する 157 157 var time = $X("string(div/div/span[@class='timestamp']/a)", e); 158 var ref = $X("./div[@class='entry' ]", body).filter(function (i) {158 var ref = $X("./div[@class='entry' and not(@class='ad')]", body).filter(function (i) { 159 159 return $X("string(div/div/span[@class='timestamp']/a)", i) < time; 160 160 })[0]; … … 193 193 next(function () { 194 194 195 var n = $X("count(//div[@class='entries']/div[@class='entry' ])");195 var n = $X("count(//div[@class='entries']/div[@class='entry' and not(@class='ad')])"); 196 196 if (num < n) { 197 var entries = $X("//div[@class='entries']/div[@class='entry' ][.//img[@alt='Reply to'] or .//span[@class='replies']/a]");197 var entries = $X("//div[@class='entries']/div[@class='entry' and not(@class='ad')][.//img[@alt='Reply to'] or .//span[@class='replies']/a]"); 198 198 loop(entries.length, function (n) { 199 199 var e = entries[n].wrappedJSObject || entries[n];
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)