Changeset 17020 for lang/javascript/userscripts
- Timestamp:
- 08/03/08 16:41:44 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/hatena.haiku.expandrepliestree.user.js
r17017 r17020 93 93 return !a ? next() : es.length ? appendAndLoadNext(es[0]) : http.get(a.href).next(function (data) { 94 94 var t = h(data.responseText.replace(/<\/?(?:script|i?frame)[^>]*>/g, "")); 95 return parallel($X(".//div[@class='entries']/div[@class='entry' ]", t).map(appendAndLoadNext));95 return parallel($X(".//div[@class='entries']/div[@class='entry' and not(@class='ad')]", t).map(appendAndLoadNext)); 96 96 }); 97 97 … … 296 296 }; 297 297 298 299 298 300 // extend version of $X 299 301 // $X(exp); … … 302 304 // $X(exp, context, type); 303 305 function $X (exp, context, type /* want type */) { 304 // console.log(String(exp)); 306 exp = exp.replace(/@class\s*=\s*(?:"([^"]+)"|'([^']+)')/g, "contains(concat(' ', @class, ' '), ' $1$2 ')"); 307 log(String(exp)); 305 308 if (typeof context == "function") { 306 309 type = context; … … 609 612 }// End of JSDeferred 610 613 614 // {{{ 615 // }}} 616 617 611 618 })(this); 612 619
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)