Last active
January 19, 2016 21:50
-
-
Save Qofar/5a1f421d2887a98e8b84 to your computer and use it in GitHub Desktop.
Tumblrでタグ一括入力するブックマークレット カンマ,区切りで入力
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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