Rob--W / open-in-browser

A browser extension that offers the ability to open files directly in the browser instead of downloading them.
Other
83 stars 15 forks source link

[feature idea] open using another url with the source url as a parameter. #54

Open splace opened 5 years ago

splace commented 5 years ago

the idea is to use html to handle a mime type.

example:

view csv file using a page with js (or other) that converts it to a table.

like:

if (http:/../file.csv has mime=='test/csv') then open (http://..../)tableviewer.html?source=http:/.../file.csv

i've been looking for a way to do this without a plugin, but not happening, and it seems to me ridiculous not to use the browser, the software you are actually already using when it can quite easily do it.

Rob--W commented 5 years ago

I had something like this before, but removed it because this only works for public URLs that are accessed directly, and not via a form or behind authentication.

The last trace was removed here: https://github.com/Rob--W/open-in-browser/commit/3c1c1df08dededf17dadfac308acef79ddb95d40 I used to support Google Docs to view office documents: https://github.com/Rob--W/open-in-browser/commit/3c1c1df08dededf17dadfac308acef79ddb95d40#diff-9daac9054d71e5e19fc3d53884988e36

splace commented 5 years ago

I used to support Google Docs

i was thinking of less sophisticated use really, a, possibly, contributor provided library of url's, (just html really) held internally and included with your plugin. using the same parameter technique to get the source url and vetted then added to updates.

a way to 'try' remote/local html files then upload, might help to get contributions.