Created
December 19, 2008 22:31
-
-
Save javascripter/38158 to your computer and use it in GitHub Desktop.
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
// ==UserScript== | |
// @name AllGyotaku | |
// @namespace http://d.hatena.ne.jp/javascripter/ | |
// @include http* | |
// ==/UserScript== | |
var url = location.href; | |
var form = document.createElement('form'); | |
form.method = 'post'; | |
form.action = 'http://s02.megalodon.jp/' + url; | |
var input = document.createElement('input'); | |
input.type = 'hidden'; | |
input.name = 'do'; | |
input.value = 'decide'; | |
var btnopen = document.createElement('input'); | |
btnopen.id = 'btnopen'; | |
btnopen.type = 'submit'; | |
btnopen.value = '利用規約に同意して魚拓を取得する'; | |
form.appendChild(input); | |
form.appendChild(btnopen); | |
var iframe = document.createElement('iframe'); | |
iframe.style.display = 'none'; | |
document.body.appendChild(iframe); | |
iframe.contentDocument.documentElement.appendChild(form); | |
form.submit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment