Skip to content

Instantly share code, notes, and snippets.

@javascripter
Created August 2, 2008 14:40
Show Gist options
  • Save javascripter/3740 to your computer and use it in GitHub Desktop.
Save javascripter/3740 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name SmartLDR
// @namespace http://d.hatena.ne.jp/javascripter/
// @include http://reader.livedoor.com/reader/
// ==/UserScript==
function evalInPage(fun) {
location.href = "javascript:void (" + fun + ")()";
}
evalInPage(function () {
var head = document.getElementsByTagName("head").item(0);
var style = $N("style", {type: "text/css"}, <><![CDATA[
.full-box, .grayline, #footer { display: none; }
#menu { margin-top: -51px; }
#message_box {
margin-top: 50px !important;
margin-left: 210px;
}
]]></>.toXMLString());
head.appendChild(style);
++State.fullscreen;
State.watch("fullscreen", function (id, before, after) {
style.disabled = after != 1;
return after;
});
Keybind.
remove("ctrl+shift").
remove("shift+ctrl");
invoke_hook("WINDOW_RESIZE");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment