adeekshith / Docs-Online-Viewer

Open publicly available online files directly in the browser using free online services without need for downloading or using third party plugins.
http://dov.parishod.com/
24 stars 4 forks source link

Improved link detection? #30

Open dlxmax opened 6 years ago

dlxmax commented 6 years ago

The plugin fails to pick up the below link because the linked file isn't obviously a DOCX file, but the hypertext says that it is. This could be an easy fix and a huge extension of usability.

Troublesome code example: (a href="/courses/1213543/assignments/7021324/submissions/8797434?download=57205833" class="file file-upload-submission-info__link") Research Card(1).docx (/a)

dlxmax commented 6 years ago

I really would be so pleased if you could implement this kind of detection. I use software that is supposed to render DOCX files in my browser, but when it fails--which is too often--the above code is what comes up instead. You really could make my day!

zedred46 commented 5 years ago

I would also really like this! I think the problem arises from the fact that the links like you describe aren't direct to file links, they redirect when clicked to the actual .docx file url. The extension just needs a way to pick up links with redirects, and display the icon to view the end file.

In the meantime I am using Office Editing for Docs, Sheets & Slides by Google (for which redirecting links work), but I'd much rather use Docs Online Viewer as I don't need to edit the files, and I don't want to mess them up by accident. I would also prefer the pdf-rendered style view of this extension.