Changeset 17017 for lang/javascript/userscripts
- Timestamp:
- 08/03/08 14:59:26 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/hatena.haiku.expandrepliestree.user.js
r17014 r17017 48 48 }); 49 49 50 // remove script added links 51 $X("./div/div/span[@class='delete']/img", entry).forEach(function (i) { 52 i.parentNode.removeChild(i); 53 }); 54 50 55 Global.Hatena.Haiku.Pager.dispatchEvent('loadedEntries', entry.parentNode.wrappedJSObject || entry.parentNode); 51 56 return entry; … … 60 65 // 深すぎるので、さらに展開するためのリンクをつけたうえで終了する。 61 66 return next(function (i) { 62 //var entries = $X("//div[@class='entries']/div[@class='entry'][.//img[@alt='Reply to'] or .//span[@class='replies']/a]");63 if (!$X("boolean( ./ /a[.//img[@alt='Reply to'] and not(@class = '__loaded')] | .//span[@class='replies']/a[not(@class = '__loaded')] )", entry)) return;64 log("level too deep. Please click the link to expand more.");67 log([entry, "too deep"]); 68 if (!$X("boolean( ./div/div/a[.//img[@alt='Reply to'] and not(@class = '__loaded')] | ./div/div/span[@class='replies']/a[not(@class = '__loaded')] )", entry)) return; 69 entry._gm_expandreplies_applied = false; 65 70 addExpandLink(entry, function () { 66 71 log("expand more -> child"); 67 72 return expandReplies(entry, LEVEL); 68 73 }); 69 }) ;74 }).error(function (e) { alert(e) }); 70 75 } 71 76
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)