Changeset 38679

Show
Ignore:
Timestamp:
11/18/10 09:32:54 (3 years ago)
Author:
mattn
Message:

merged https://gist.github.com/670503 . Thanks to taizoo and bardiche.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/userscripts/playontumblr.user.js

    r35880 r38679  
    9090          try { 
    9191            if (!stdin.length) stdin = execute('current-node'); 
    92             var count = $X('.//input[contains(concat(" ",@class," "), " like_button ")]', stdin[0]); 
     92            var count = $X('.//a[contains(concat(" ",@class," "), " like_button ")]', stdin[0]); 
    9393              for (var n = 0; n < count.length; n++) { 
    9494              if(!count[n].clientWidth) continue; 
    95               count[n].click(); 
     95              click(count[n]); 
    9696              return stdin; 
    9797            }