Skip to content

Instantly share code, notes, and snippets.

@Qofar
Last active January 19, 2016 21:50
Show Gist options
  • Save Qofar/5a1f421d2887a98e8b84 to your computer and use it in GitHub Desktop.
Save Qofar/5a1f421d2887a98e8b84 to your computer and use it in GitHub Desktop.
Tumblrでタグ一括入力するブックマークレット カンマ,区切りで入力
javascript:(function(){var%20tageditor=document.querySelector('.tag-input-wrapper%20.editor-plaintext');if(!tageditor)return;var%20ret=window.prompt('input%20tags%20(a,b,c)%20:');if(ret===null)return;var%20tags=ret.split(',');for(var%20i=0;i<tags.length;i++){var%20span=document.createElement('span');var%20value=document.createTextNode(tags[i]);span.appendChild(value);tageditor.appendChild(span);tageditor.focus();tageditor.blur();}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment