Skip to content

Instantly share code, notes, and snippets.

@higeorange
Created June 19, 2010 07:15
Show Gist options
  • Save higeorange/444661 to your computer and use it in GitHub Desktop.
Save higeorange/444661 to your computer and use it in GitHub Desktop.
// ==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