Skip to content

Instantly share code, notes, and snippets.

@ohnishiakira
Created May 2, 2011 09:18
Show Gist options
  • Save ohnishiakira/951344 to your computer and use it in GitHub Desktop.
Save ohnishiakira/951344 to your computer and use it in GitHub Desktop.
はてなブックマークのタイトルを全文表示する
// ==UserScript==
// @match http://b.hatena.ne.jp/*
// ==/UserScript==
var title = [
document.querySelectorAll(".entry-link"),
document.querySelectorAll(".asin-sim-title")
];
for (var i = 0, k = title.length; i < k; i++) {
for (var j = 0, l = title[i].length; j < l; j++) {
if (title[i][j]["title"] !== "") {
title[i][j].innerText = title[i][j]["title"];
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment