Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

[Updated] Google Reader Preview Enhanced v1.07g

Adds a "Preview button" to Google Reader that allows you to view actual article in a frame. Clicking again on that button goes back to RSS view. Does work both in List view and expanded view.

Here are some advantages of the script :

- You can see and post comments right from Google Reader !
- You can read truncated rss feeds entirely.
- You don't lose time opening a new window or tab in order to go on the website and see the article in its original context.

Preview can be opened by clicking on article's title, preview button on typing Shift-V

Feel free to leave comments or improvement suggestions here or address them to jcarosi (at) gmail (dot) com .

Twitter users : you can now subscribe to my twitter http://www.twitter.com/JulienCarosi in order to be informed of new releases !
Dont't worry you will not be bored with things like what I am doing at this time etc... ;-)

Changelog :

v1.07g : Fixed scrolling to top of article and Shift-V shortcut to open preview.
Now doesn't rely on Google's code at all. So scrolling to top of article and Shift-V will still work even if Google's code changes.
v1.07f : fixes a bug introduced by v1.07e
v1.07e : fixes compatiblity with Google's new code
v1.07d : makes scrolling to top of article work again because google's code was changed. Same for shortcut
v1.07c : fixes problem with Shift V shortcut that prevented typing capital V in GR's dialog boxes
added support for https urls
v1.07b : makes scrolling to top of article work again because google's code was changed. Same for shortcut
v1.07a : makes the script work again because google's code was changed.
added a try/catch statement in order to make the script work even if the code changes again, though not scrolling to the top of article so people can still use the script until an upgrade is released
v1.07 : allows clicking on an article's title to show the preview, so you don't need to scroll it down to preview it (was opening the article in a new window previously, now not needed with preview functionnality)
v1.06a : fixes compatibility with "find as you type" firefox functionality
v1.06 : adds a keyboard shortcut for previewing an article. Now you can press Shift-V to go to preview mode or go back to rss view.
v1.05a : adds better support for Better GReader extension.
v1.05 : makes the script work again because offline functionnality broke it when it was added by Google.
v1.0 : initial release.

Some screenshots :

Using GPE
GPË in action




Apr 22, 2008
Julien Carosi Script's author

Hiromacu : Thanks for your comment !

FYI, next version will allow you to customize shortcut. ;-)

Julien.


 
Apr 22, 2008
Julien Carosi Script's author

Strawbeard : the script doesn't run on gmail, so it must not be GPE that prevents '?' from working. I also tried to deactivate GPE on Google Reader website, and the '?' key doesn't even work.

Julien.


 
Apr 22, 2008
Hiromacu Scriptwright

I love this script! But I modified [shift-v] shortcut to [alt-enter] for easier use.

function handleKeypress(e)
{
// Handle an alt-enter keypress instead of shift-v
if (e.target.nodeName.toLowerCase()!='input' && e.altKey && e.keyCode==13)
{
previewShortcut();
e.preventDefault();
}
}

Thank Julien Carosi for this script.


 
Apr 22, 2008
strawbeard User

@Julian (Apr 12, 2008)on 1.07g:
"Also fixes Shift-V shortcut."

Now Gmail shortcut '?' for help screen no longer works, all the other shortcuts still work. On my Swiss German keyboard '?' is entered as [Shift]-[single quote]. Could this be a side-effect of the Shift-V fix?


 
Apr 21, 2008
Julien Carosi Script's author

Hi Madhavan,

Yes it's a known problem with some sites that escape from the frame, I'm working on that, among other new features.

Stay tuned ;-)

Julien.


 
Apr 21, 2008
Madhavan User

Doesnt work for FreakonomicsBlog feed. The blog opens as a complete window instead of a frame.
Feed URL:
http://feeds.feedburner.com/~r/FreakonomicsBlog...


 
Apr 19, 2008
Christian Sc... User

Great Work!!!


 
Apr 13, 2008
johnnycab User

Thanks for the update.


 
Apr 13, 2008
ナコルル User

I really love this Script!
Thank you!


 
Apr 12, 2008
Julien Carosi Script's author

v1.07g just released. Fixes automatic scrolling to top of article when preview is opened. Also fixes Shift-V shortcut.

Now doesn't rely on Google's code so scrolling to top of article and preview shortcut will still work even if Google's code changes.

As a remember, here are the ways, you can open preview :
- Click on preview button
- Click on article's title in expanded view
- Type Shift-V

Julien.
 
Apr 10, 2008
data User

Great Script! Thx!


 
Apr 9, 2008
Julien Carosi Script's author

Just released v1.07f. Fixes bug introduced with v1.07e. Sorry for the inconvenience.


 
Apr 9, 2008
Simon Hudson User

The latest update (v1.07e) needs a tweak before it will toggle back to the original view.

Change line 221 of gpe.user.js to entryBody.style.display='block';


 
Apr 9, 2008
Dawudd User

Thanks for the recent update. However, it introduced a regression: closing a preview doesn’t bring back the original content.

As for my wish list, in order of preference:

– fix the regressions (including Shift+V being broken)
– iframe auto-sizing. I think iGoogle has some code to do this, so you may want to look into how they do that. There’s also Bug 80713.
– Remembering which feeds should default to preview
– Prevent iframe escaping. Is a general solution for that even possible?


 
Apr 8, 2008
ebcindc User

Nicely done - I appreciate this quick fix!


 
Apr 8, 2008
strawbeard User

My wish list for GPE:

- Prevent iframe escape (very important)
- Iframe auto-sizing
- Auto update


 
Apr 8, 2008
Jakkers User

Allow a configurable hotkey. Being able to use "F" in the hacked version is an advantage, though user configurable would be even better :)


 
Apr 8, 2008
Julien Carosi Script's author

Hi, I just released a fix that makes the script work with Google's new code.

I also e-mailed Lifehacker's team in order to ask for an update to the extension.

Btw, I had no time to work on the script and I plan to release the big update in the next weeks. I'd like to know what are your biggest requests or suggestions to improve GPE. Here is a mix between what I read in the comments and some things I thought by myself :

- Revert mode (article shows in preview mode by default)
- Remember which sites should open in preview mode by default
- Multilangual support
- Full screen article preview
- Search support
- Iframe auto-sizing, eliminating the need for scrollbars (configurable)
- Prevent iframe escape for some sites
- Auto update

I really would like to know what are the features that you want first. So please post here in the comments or e-mail me.

Thanks,

Julien.


 
Apr 8, 2008
mingdavid User

I am using Flock 1.1.1 and it's using FF 2.0.0.13. I've tried the fix below to fix my FF beta 4 and it worked; however, it doesn't work in my Flock. I did exactly the same. Can anyone offers some help?


 
Apr 8, 2008
Jakkers User

Sorry scratch that - it was an invisible folder.


 
Apr 8, 2008
Jakkers User

I cant get the fix to work, for the simple reason that my system doesn't have an 'application data' directory within my <username> directory. Is there anywhere else Firefox could store my profile? I can't find any of the files or directories mentioned through a filesearch either :|

Windows XP SP2, Firefox 2.0.0.13</username>


 
Apr 6, 2008
cfgrok User

I attempted to follow sbw07's instructions for applying John Doppke's preview fix to the Better GReader extension, but editing the .jar file directly in a text editor did not work for me (it broke the Firefox chrome).

Here is what did work:

I extracted the .jar archive by following the instructions here:

http://home.att.net/~cherokee67/jarfile.html

After the files are extracted, the .js file to edit is:

content\user_scripts\previewenhanced.js

Make the change indicated by John Doppke (in my version of the file it is on line 182), save the file, repack the archive, and you should be all set.

HTH


 
Apr 6, 2008
sbw07 User

Woops, it seems using this fix makes the Better Greader Optins window disappear. All I see now is the title bar of the options. So I guess if yyou lie to constrantly change your options stay away from it.


 
Apr 6, 2008
sbw07 User

I wrote "change the def. app. for .jar files back to the Java Virtual Machine". Obviously I meant "Java Platform SE binary" Sorry.


 
Apr 6, 2008
sbw07 User

I'm using the Better GReader version and John Doppke's fix worked for me. The file that had to be modified is better greader.jar located at xxxxxxxx.default\extensions\bettergreader@ginatrapani.org\chrome

I had to change the dafault application for jar files to notepad in order to edit it. Next, do a search in notepad for "Need to scroll before changing entry-body" (without the quotation marks). Approx. 5 lines below the result is the entry John mentions. Edit it, save, and then change the def. app. for .jar files back to the Java Virtual Machine. The Preview should now be working.

Thanks John and Julien!!


You could comment on this script if you were logged in.