Skip to content

Instantly share code, notes, and snippets.

@ino46
Created November 30, 2008 16:11
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 ino46/30466 to your computer and use it in GitHub Desktop.
Save ino46/30466 to your computer and use it in GitHub Desktop.
新はてブの省略されたエントリータイトルをフルタイトルに。(opera 用)
// ==UserScript=
// @name はてブ フルタイトル (opera 用)
// @author ino46
// @version 0.0.1.0 (2008-12-01T01:11:09+09:00)
// @include http://b.hatena.ne.jp/
// @include http://b.hatena.ne.jp/entrylist
// @include http://b.hatena.ne.jp/hotentry*
// @include http://b.hatena.ne.jp/t/*
// ==/UserScript==
//
(function(){
if( location.href.match(/http:\/\/b\.hatena\.ne\.jp\//) || location.href.match(/http:\/\/b\.hatena\.ne\.jp\/entrylist/) || location.href.match(/http:\/\/b\.hatena\.ne\.jp\/hotentry.*/) || location.href.match(/http:\/\/b\.hatena\.ne\.jp\/t\/.*/) ) {
var css ="\
.entry-body h3 a {\
content:attr(title);\
}\
";
var ele=document.documentElement.appendChild(document.createElement("style"));
ele.setAttribute("type", "text/css");
ele.innerText=css;
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment