Skip to content

Instantly share code, notes, and snippets.

@ussy
Created August 28, 2010 18:58
Show Gist options
  • Save ussy/555458 to your computer and use it in GitHub Desktop.
Save ussy/555458 to your computer and use it in GitHub Desktop.
--- hatena_star.rb.orig 2009-08-04 23:33:41.000000000 +0900
+++ hatena_star.rb 2010-08-29 03:55:37.000000000 +0900
@@ -20,7 +20,14 @@
container: 'h3'
}
}
- };\n|
+ };
+ (function() {
+ var NodeInsert = function(evt) {
+ Hatena.Star.EntryLoader.loadNewEntries(evt.target);
+ };
+ window.addEventListener('AutoPagerize_DOMNodeInserted', NodeInsert, false);
+ window.addEventListener('AutoPatchWork.DOMNodeInserted', NodeInsert, false);
+ })();\n|
if @conf['hatena_star.token'] then
hatena_star << %Q|\t\tHatena.Star.Token = '#{CGI::escapeHTML @conf["hatena_star.token"]}';\n|
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment