Skip to content

Instantly share code, notes, and snippets.

@syusui-s
Created February 20, 2014 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syusui-s/9108890 to your computer and use it in GitHub Desktop.
Save syusui-s/9108890 to your computer and use it in GitHub Desktop.
とりあえず,前の位置には戻せる
javascript:function imgNode(nodes){ for(var i = 0; i < nodes.length; ++i){ if(nodes[i].innerText == '画像') return nodes[i]; } return false; } node = imgNode(document.getElementsByClassName('hdtb_mitem')); menu = document.getElementById('hdtb_msb'); menu.removeChild(node); menu.insertBefore(node, menu.childNodes[1]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment