Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Changing the web browser display of a raw directory listing

21 views
Skip to first unread message

Peter

unread,
Jan 2, 2015, 8:07:08 AM1/2/15
to mongoos...@googlegroups.com
Is there a method to change the information that a web browser displays of a raw directory listing?
Cab this be done server side or is it something that the web browser has to change?

I'm using an Android web browser and Windows 8.1 to run Mongoose pro and I'd like to

A) filter out "System Volume Information"  and "$RECYCLE.BIN"
B) filter out an extra few folders
C) if it can be done I would also like to remove the date/time for each folder and filename
     - or if it's simpler just filter out everything except the foldername and filenames.

Ta

Sergey Lyubka

unread,
Jan 2, 2015, 8:25:21 AM1/2/15
to mongoose-users
I think it is easily doable with Greasemonkey: http://www.greasespot.net/ 

Greasemonkey allows to execute user-specified JavaScript code on certain web pages.
In your case, a simple JavaScript can do what you want - filter out stuff, and hide specific columns.
 

Ta

--
You received this message because you are subscribed to the Google Groups "mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongoose-user...@googlegroups.com.
To post to this group, send email to mongoos...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/d/optout.

Peter

unread,
Jan 2, 2015, 8:53:36 AM1/2/15
to mongoos...@googlegroups.com
On Saturday, 3 January 2015 00:25:21 UTC+11, Sergey Lyubka wrote:
 
Greasemonkey allows to execute user-specified JavaScript code on certain web pages.
In your case, a simple JavaScript can do what you want - filter out stuff, and hide specific columns.


Thank you Sergey, I appreciate your suggestion.
I know of Greasemonkey and I can learn some Javascript -

though I would prefer if the users (family) can use the default browser in the android machine - which is not Firefox.

The home screen on the Android machine is fixed and cannot be edited (It's a smart TV with no root access) and
there would be a benefit to the elderly users to use what is familiar and in front of them.

I guess my question could be rephrased to ask: Is there a method in Mongoose to adjust the output of the raw directory access?

Ta

Sergey Lyubka

unread,
Jan 2, 2015, 9:03:27 AM1/2/15
to mongoose-users
No, Mongoose does not provide any mean to customize the output.
It is pretty much standard for all web servers.

Peter

unread,
Jan 2, 2015, 9:32:24 AM1/2/15
to mongoos...@googlegroups.com
On Saturday, 3 January 2015 01:03:27 UTC+11, Sergey Lyubka wrote:

No, Mongoose does not provide any mean to customize the output.
It is pretty much standard for all web servers.



Ok, thanks again. 

Final question (on this topic):

Would you or anyone else know of a tool that can load on the Windows box and intercept the call between the android box and Mongoose, to edit the information passing between them?
Or would something like that also affect the media stream passing to the Android box?

I don't know a lot about this sort of stuff.

Ta

Sergey Lyubka

unread,
Jan 2, 2015, 9:40:39 AM1/2/15
to mongoose-users
You can run a periodic job on the server machine
to generate index.html files in the directories with movies.

--

jeff shanab

unread,
Jan 2, 2015, 9:57:13 AM1/2/15
to mongoos...@googlegroups.com
Did I miss something? Handle it like a CGI, read it into a memory buffer then create the response from that memory buffer to look like you want it.

Sergey Lyubka

unread,
Jan 2, 2015, 10:14:40 AM1/2/15
to mongoose-users
I think Peter wants to use a pre-built binary without writing any C code himself.

jeff shanab

unread,
Jan 2, 2015, 10:21:39 AM1/2/15
to mongoos...@googlegroups.com
Ah. then client side.
   Suggestion : Knockout

Peter

unread,
Jan 2, 2015, 10:24:42 AM1/2/15
to mongoos...@googlegroups.com
On Saturday, 3 January 2015 01:40:39 UTC+11, Sergey Lyubka wrote:
You can run a periodic job on the server machine
to generate index.html files in the directories with movies.

That is something I can handle, if need be.
 
I think Peter wants to use a pre-built binary without writing any C code himself.
 
That last point is true too - C isn't something I've used.


On Saturday, 3 January 2015 01:57:13 UTC+11, jshanab wrote:
Did I miss something? Handle it like a CGI, read it into a memory buffer then create the response from that memory buffer to look like you want it.

I don't know web scripting very well, and CGI isn't something I've dabbled in - thanks for the reply though.


Sergey Lyubka

unread,
Jan 2, 2015, 10:33:14 AM1/2/15
to mongoose-users
On Fri, Jan 2, 2015 at 3:24 PM, Peter <proc...@gmail.com> wrote:
On Saturday, 3 January 2015 01:40:39 UTC+11, Sergey Lyubka wrote:
You can run a periodic job on the server machine
to generate index.html files in the directories with movies.

That is something I can handle, if need be.

Then go ahead with that - apparently that is the easiest option.
Write a script that scans a directory contents and creates index.html the a directory, in the format you want.
It might trim long file names, filter unneeded things, etc.

I think Peter wants to use a pre-built binary without writing any C code himself.
 
That last point is true too - C isn't something I've used.

On Saturday, 3 January 2015 01:57:13 UTC+11, jshanab wrote:
Did I miss something? Handle it like a CGI, read it into a memory buffer then create the response from that memory buffer to look like you want it.

I don't know web scripting very well, and CGI isn't something I've dabbled in - thanks for the reply though.


Peter

unread,
Jan 2, 2015, 10:41:59 AM1/2/15
to mongoos...@googlegroups.com
On Saturday, 3 January 2015 02:21:39 UTC+11, jshanab wrote:
Ah. then client side.
   Suggestion : Knockout


Out of interest sake, is this what you are referring to?  http://knockoutjs.com/

If I wrote the script - assuming I get to that stage - how does this work in an Android box with very little access - no root.
Does it require installing some binary that enhances the javascript?



On Saturday, 3 January 2015 02:33:14 UTC+11, Sergey Lyubka wrote:
Write a script that scans a directory contents and creates index.html the a directory, in the format you want.
It might trim long file names, filter unneeded things, etc.



That's easy for me.  I can schedule the script - the attractiveness of raw listings is what prompted me to ask, but at least I know more now than I did before.

Thanks guys.

jeff shanab

unread,
Jan 2, 2015, 12:59:48 PM1/2/15
to mongoos...@googlegroups.com
Javascript engines in browsers are getting better and better and knockoutjs is a javascript library. you just reference it in your page headers and I expect any good browser will cache it. I made a site that used it and I was able to use the site on android. Just gotta give it a try.

Th reason I mention it is knockouit is declarative I could see it being a simple mapping from an async javascript request to the page you want. I was very impressed with it when I used it. There are some videos, watchem twice.

Peter

unread,
Jan 3, 2015, 3:23:26 AM1/3/15
to mongoos...@googlegroups.com
Thanks Jeff, and Sergey.

The index.html turns out to be the best solution as I have added different icons to various filetypes and also to folders,
so the family are able to easily see what is what - and excluding folders and filetypes is easy too.

I appreciate your help and ideas and information.


On Saturday, 3 January 2015 02:33:14 UTC+11, Sergey Lyubka wrote:
 
Reply all
Reply to author
Forward
0 new messages