キーボードでlike - otsune tumblr まとめサイト 画像保管庫Q


Click here to lend your support to: tombloo and make a donation at www.pledgie.com ! View my page on tumblrist

ブログパーツならブログデコ!!

dara-j:

playontumblr.user.jsのshow/hide切替が激しく便利だったので、

  addShortcutkey({
    key: "l",
    description: "tumblr.like",
    command: function() {
      try { execute( "tumblr.like", execute("current-node")); } catch(e) { }
    }});

  addCommand({
    name: "tumblr.like",
    command: function(stdin) {
      try {
        if(!stdin.length) stdin = execute("current-node");
        var count = $X('.//input[contains(concat(" ",@class," "), " like_button ")]', stdin[0]);
        for(var n = 0; n < count.length; n++) {
          if(!count[n].clientWidth) continue;
          count[n].click();
          return stdin;
        }
      } catch(e) {}
      return stdin;
    }});

なんてコードを追加して、「l」キーでlike/unlike切替できるようにしてみた。j→j→j→(ぬこ発見)→l→…でかなり幸せ。

Changeset 32869 – CodeRepos::Share – Tracにてcommitしました。
インストールはplay on tumblr - Wescriptで。

otsune
Comments (45 notes)

Comments

  1. rnyhrt reblogged this from hain
  2. hain reblogged this from syoichi
  3. remiko reblogged this from syoichi
  4. sugizou reblogged this from syoichi
  5. syoichi reblogged this from otsune
  6. sakurasakuras reblogged this from gkojax
  7. keizo reblogged this from gkojax
  8. macotoi reblogged this from otsune
  9. tmrrwnystrdy reblogged this from sampler
  10. crossbreed reblogged this from yaruo
  11. nagas reblogged this from tsupo
  12. tsupo reblogged this from gkojax
  13. gkojax reblogged this from yaruo
  14. yaruo reblogged this from suyhnc and added:
    playontumblr.user.jsのshow/hide切替が激しく便利だったので、 addShortcutkey({ key: "l", description: "tumblr.like", command: function()...
  15. monorainbows reblogged this from sampler
  16. fujimogn reblogged this from ichimonji
  17. sampler reblogged this from suyhnc
  18. suyhnc reblogged this from otsune
  19. kiri2 reblogged this from otsune
  20. jumitaka reblogged this from otsune
  21. morygonzalez reblogged this from otsune
  22. otsune reblogged this from dara-j and added:
    Changeset 32869 – CodeRepos::Share – Tracにてcommitしました。 インストールはplay on tumblr - Wescriptで。
  23. takeoba reblogged this from otsune
  24. ichimonji reblogged this from otsune
  25. hisajun reblogged this from otsune
  26. reretlet reblogged this from otsune and added:
    playontumblr.user.jsのshow/hide切替が激しく便利だったので、 addShortcutkey({ key: "l", description: "tumblr.like", command: function()...
  27. otsune reblogged this from dara-j
  28. carandache reblogged this from do-nothing
  29. carandache reblogged this from do-nothing
  30. pcatan reblogged this from do-nothing
  31. do-nothing reblogged this from mifei
  32. ishikura reblogged this from kanmei
  33. starcat reblogged this from fifnel
  34. kanmei reblogged this from mifei
  35. fifnel reblogged this from mifei
  36. mifei reblogged this from dara-j
  37. dara-j posted this