Created
November 25, 2008 11:12
-
-
Save zaknak/28887 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 MoveHatebKanren | |
// @namespace http://d.hatena.ne.jp/zaknak/ | |
// @include http://b.hatena.ne.jp/entry/* | |
// ==/UserScript== | |
var elements = document.evaluate('//span[contains(@class,"pfi")]/parent::h2 | //span[contains(@class,"pfi")]/parent::h2/following-sibling::div',document,null,7,null); | |
if(elements.snapshotLength){ | |
var parentElm = document.getElementById("entryinfo"); | |
for(var i = 0; i < 3; i++){ | |
var targetElm = elements.snapshotItem(i); | |
parentElm.appendChild(parentElm.removeChild(targetElm)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment