Last active
December 11, 2015 02:08
-
-
Save fuqunaga/4528446 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
javascript: | |
var els = document.getElementsByTagName('a'); | |
as=[]; | |
for(var i=0;i<els.length && as.length<3;++i){ | |
var e = els[i]; | |
if ('進化素材にする'==e.text && 'shortcut_link_show'!=e.id) as.push(e); | |
} | |
(function(){ | |
var e = as.shift(); | |
if ( e ){ | |
req = new XMLHttpRequest(); req.open('GET', e.getAttribute('href'),false); req.send(); | |
ifr = document.createElement('iframe'); e.appendChild(ifr); ifr.style.display='none'; | |
ifr.onload = arguments.callee; | |
id = ifr.contentWindow.document; ib = id.body; ib.innerHTML = req.responseText; | |
ib.getElementsByTagName('form')[0].submit(); | |
} | |
else location.reload(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment