Skip to content

Instantly share code, notes, and snippets.

@evadne
Created March 28, 2010 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evadne/346611 to your computer and use it in GitHub Desktop.
Save evadne/346611 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name GooView
// @namespace Google
// @description Opens files of various formats using Google Viewer.
// ==/UserScript==
for (link in document.links)
if (/ppt|png|pdf|tif|tiff|javascript|file\:/ig.exec(link.href) != null)
link.href = 'http://docs.google.com/viewer?url=' + link.href;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment