Large

Docs Online Viewer

By Deekshith Last update Oct 16, 2012 — Installed 32,782 times.

problem

in
Subscribe to problem 9 posts, 2 voices



mike cupcake Scriptwright
FirefoxMacintosh

Taking google search results as an example: I click on one, have to click again on a redirect notice, get the adfly page, click again, and then the pdf downloads instead of being passed to google docs. Previous version of the script worked fine.

 
Deekshith Script's Author
FirefoxX11

Do not click on the direct link. Instead, Click on the icon beside the link as shown in the screenshot.

The redirection notice appears when you click on the link instead of the icon when searching using google's https protocol (https enabled by Firefox by default in the latest version).

The links are masked with adfly in this version to avoid undesired looping of the script leading to browser crashes some times. Hope your problem is solved. If not, let me know

 
mike cupcake Scriptwright
FirefoxMacintosh

Aha, yes that icon link does work for doc/pdf. Another issue though: it's recoding links to .ZIP files. Clicking the icon on them opens a load of html code in google docs, clicking the text link goes via adfly, neither behaviours are desired.

 
Deekshith Script's Author
FirefoxWindows

No, This new version of this script can open ZIP files too. The same icon appears beside beside a ZIP file. If you click on the icon, it opens the ZIP file in Google docs. If you click on the link directly, it gets downloaded.

Clicking the link will pass through adf.ly but your Zip file will be downloaded.

However, I have found a minor problem which I will fix it in a day or two. That is, when the ZIP file is opened using the icon, you can view files but no download option is provided. Thank you for notifying me.

 
mike cupcake Scriptwright
FirefoxMacintosh

My mistake, I'd done a google search for filetype:zip and while it looked like I was clicking your icon next to a direct ZIP link it was actually a page containing links to zips, so that explains it but raises another issue.

I'll keep this disabled until you find a method that doesn't use adfly.

 
Deekshith Script's Author
FirefoxX11

Yes, I am trying to do avoid adf.ly links. If you have any other reliable service which I can use to mask URLs, please inform me. If this version is annoying for you, then better go with the previous version till then. I will inform you when adf.ly masking is removed. However I feel this version has improved greatly in terms of usability and format support.
Thank you.

 
Deekshith Script's Author
FirefoxWindows

All your problems are fixed:
1. adf.ly links are removed. I am now using my own custom domain which is safe to use without any ads or spying (You can check the source code of it).
2. Download option for zip files is provided.
I hope you have no more problems.

 
mike cupcake Scriptwright
FirefoxWindows

Hiya, love the new features you've added. One small bug (probably in my version too) any ampersands (&) in the file URL don't get encoded to %26 which prevents Google from loading the file.

e.g. https://docs.google.com/viewer?url=http://www2....

needs to be https://docs.google.com/viewer?url=http://www2....

 
Deekshith Script's Author
FirefoxWindows

Hello Mike, thank you for reporting this. I will try to solve it soon. Don't forget to inform me if you solve it before I do. :)