Created
March 28, 2013 12:21
-
-
Save kahagon/5262705 to your computer and use it in GitHub Desktop.
はてなダイアリーの記事を一括でチェック入れて削除するスクリプト。
This file contains hidden or 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
| var deleteForm = null; | |
| for (var i = 0; i < document.forms.length; i++) { | |
| var action = document.forms[i].getAttribute("action"); | |
| if (action && action.match(/delete$/)) | |
| deleteForm = document.forms[i]; | |
| } | |
| tdList = document.getElementsByClassName("td-checkbox"); | |
| for (i = 0; i < tdList.length; i++) { | |
| tdList[i].children[0].checked = true; | |
| } | |
| deleteForm.submit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment