Skip to content

Instantly share code, notes, and snippets.

@nkmrgk
Created November 3, 2011 03:56
Show Gist options
  • Save nkmrgk/1335732 to your computer and use it in GitHub Desktop.
Save nkmrgk/1335732 to your computer and use it in GitHub Desktop.
Google Reader Compact
// ==UserScript==
// @name Google Reader Compact
// @namespace http://nkmrgk.tumblr.com/
// @description Hide/show search bar on the Google Reader
// @include http://www.google.com/reader/view/*
// @include http://www.google.co.jp/reader/view/*
// @include https://www.google.com/reader/view/*
// @include https://www.google.co.jp/reader/view/*
// @version 1.2
// ==/UserScript==
var overrideCSS = "\
/* entries */\
#viewer-header { height:45px !important; }\
#lhn-add-subscription-section { height:45px !important; }\
#lhn-add-subscription, #viewer-top-controls-container\
{ margin-top:-15px !important; }\
#entries { padding:0 !important; }\
#title-and-status-holder { padding:0.3ex 0 0 0.5em !important; }\
.collapsed { line-height:2.2ex !important; padding:2px 0 !important; }\
.entry-icons { top:0 !important }\
.entry-source-title { top:2px !important }\
.entry-secondary { top:2px !important }\
.entry-main .entry-original { top:4px !important }\
.section-minimize { left: 0px !important }\
#overview-selector, #lhn-selectors .selector, .folder .name.name-d-0,\
#sub-tree-header\
{ padding-left: 15px !important; }\
.folder .folder .folder-toggle { margin-left:13px !important }\
.folder .sub-icon, .folder .folder>a>.icon { margin-left:27px !important }\
.folder .folder>ul .icon { margin-left:34px !important }\
.folder .folder .name-text { max-width:160px !important }\
#reading-list-selector .label { display:inline !important }\
\
/* navi */\
#lhn-add-subscription-section, #scrollable-sections-top-shadow, #scrollable-sections-bottom-shadow, #nav { width: 180px; }\
#chrome { margin-left: 180px; }\
\
/* subscribe button */\
.jfk-button-primary {\
background: #EBEFF9 url(none) !important;\
color: black !important;\
}\
\
/* refreash button */\
.jfk-button {\
min-width: 22px;\
}\
/* corner */\
.entry .card, .card .card-bottom {\
border-radius: 5px !important;\
-moz-border-radius: 5px !important;\
-webkit-border-radius: 5px !important;\
}\
\
#entries {\
padding-right: 4px !important;\
padding-left: 4px !important;\
}\
\
/* expand entry bodies */\
#main {width: 100% !important; }\
.entry-title, .entry-body { display: inline !important; }\
.item-body { padding-right: 5px !important; }\
\
/* current, read, unread */\
#current-entry .card { border-color: #222 !important; }\
.card { border: 2px solid #888 !important; }\
div.entry:not(.read) .card { border: 2px solid #ccc !important; }\
\
/* card */\
.card {padding-left: 8px !important; }\
.entry-date {padding-right: 5px !important; }\
\
/* colors */\
.entry a:link { color: #222 !important; }\
.entry a:visited {color: purple !important; }\
.entry a:active {color: red !important; }\
.entry-title a:visited, .entry-author a:visited { color: #222 !important; }\
\
/* Menus */\
.goog-menuitem, .goog-tristatemenuitem, .goog-filterobsmenuitem {\
line-height: 1.1em !important;\
padding: 6px 6px 6px 20px !important;\
}\
\
.goog-menuitem-highlight, .goog-menuitem-hover {\
border: none !important;\
}\
";
GM_addStyle(overrideCSS);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment