]>
Tony Duckles's Git Repositories (git.nynim.org) - userscripts.git/blob - greader_minimalistic.js
09a06c20b857e504578a5742661c80652a3865d4
3 // @name Google Reader Minimalistic
4 // @namespace http://google.com/reader/userscript
5 // @description Removes all the whitespace from Google Reader and just gives you the news
6 // @include http://google.com/reader/*
7 // @include http://*.google.com/reader/*
8 // @include https://google.com/reader/*
9 // @include https://*.google.com/reader/*
10 // @include https://google.co.uk/reader/*
11 // @include https://*.google.co.uk/reader/*
13 // Google Reader Minimalistic
14 // Scott Cowan http://userscripts.org/users/32932
17 var ids
= ["top-bar", "lhn-add-subscription-section"];
21 var length
= ids
.length
;
22 var is_visible
= document
.getElementById(ids
[0]).style
.display
!= "none";
24 for (var i
=0; i
<length
; i
++){
25 if(document
.getElementById(ids
[i
]) != null)
26 document
.getElementById(ids
[i
]).style
.display
= is_visible
?"none":"block";
30 function GRT_key(event
) {
31 element
= event
.target
;
32 elementName
= element
.nodeName
.toLowerCase();
33 if (elementName
== "input") {
34 typing
= (element
.type
== "text" || element
.type
== "password");
36 typing
= (elementName
== "textarea");
38 if (typing
) return true;
39 if (String
.fromCharCode(event
.which
)=="W" && !event
.ctrlKey
&& !event
.altKey
&& !event
.metaKey
) {
42 event
.preventDefault();
50 document
.addEventListener("keydown", GRT_key
, false);
53 var accountname
= document
.getElementById('email-address');
54 document
.title
= document
.title
+ " | " + accountname
.innerHTML
+ " | ";