Skip to content

Instantly share code, notes, and snippets.

@fuqunaga
Last active December 11, 2015 02:08
Show Gist options
  • Save fuqunaga/4528446 to your computer and use it in GitHub Desktop.
Save fuqunaga/4528446 to your computer and use it in GitHub Desktop.
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