Skip to content

Instantly share code, notes, and snippets.

@ka-ka-xyz
Last active December 10, 2015 21:08
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 ka-ka-xyz/4493226 to your computer and use it in GitHub Desktop.
Save ka-ka-xyz/4493226 to your computer and use it in GitHub Desktop.
はてなブックマーク新デザインをリスト表示に戻すユーザスクリプト(1/9 23:00 chromeにて動作確認、ただし今後のはてなブックマークのアップデートにより動作しなくなるかも知れませんので注意)
// ==UserScript==
// @name HatenaMod(ka-ka_xyz)
// @include http://b.hatena.ne.jp/entrylist*
// @include http://b.hatena.ne.jp/hotentry*
// ==/UserScript==
//see http://d.hatena.ne.jp/ka-ka_xyz
(function (d, func) {
var h = d.getElementsByTagName('head')[0];
var s1 = d.createElement("script");
s1.setAttribute("src", "https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js");
s1.addEventListener('load', function() {
var s2 = d.createElement("script");
s2.textContent = "jQuery.noConflict();(" + func.toString() + ")(jQuery);";
h.appendChild(s2);
}, false);
h.appendChild(s1);
})(document, function($) {
$("li.entry-unit").width("100%");
$(".thumbnail").hide();
$("li.domain").hide();
$(".shim-elem-for-height").hide();
$("ul.entry-vertical-3 ul.entry-meta").css("padding", "0px 0px 0px 0px");
$("ul.entry-vertical-3").removeClass("entry-vertical-3");
$("ul.entry-vertical-4").removeClass("entry-vertical-4");
$("li.entry-unit ul.users").css("height","initial");
var width = "85%";
$("#container").css("width",width);
$("#branding").css("width",width);
$("#navi-category").css("width",width).css("height","initial");
$("#navi-page").css("width",width).css("height","initial");
$("#main>div.box-wrap.top").css("width",width)
$("blockquote").css("font-size","0.8em").css("color","#585858");
$("ul.users a").css("display","inline").css("float","right");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment