Created
June 19, 2010 07:15
-
-
Save higeorange/444661 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== | |
// @description add a link of hatena bookmark entry page to delicious url page | |
// @include http://*delicious.com/url/* | |
// ==/UserScript== | |
(function() { | |
var hub = "http://b.hatena.ne.jp/entry/"; | |
var hib = "http://b.hatena.ne.jp/entry/image/normal/"; | |
var up = document.getElementById("url"); | |
var url = up.firstChild.href; | |
var hl = document.createElement("a"); | |
hl.href = hub + url; | |
hl.style.marginLeft = "5px"; | |
var hli = document.createElement("img"); | |
hli.src = hib + url; | |
hl.appendChild(hli); | |
up.appendChild(hl); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment