Created
March 28, 2010 06:39
-
-
Save evadne/346611 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 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