Created
August 2, 2008 14:40
-
-
Save javascripter/3740 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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