How to exclude local file URLs?

14 views
Skip to first unread message

Salar Zeynali

unread,
Jul 25, 2016, 12:34:02 AM7/25/16
to Shelve Firefox Add-on
Hello,

First I want to thank the developer for this great extension he has made. I can't think of Firefox without Shelve anymore! Wish I had found it sooner...

Anyway, the title says all. I can't understand regex's syntax though I have tried to learn it many times, my mind just can't get used to it's syntax.

So the only thing coming to my mind (and pretty obviously!) is this, as file URLs start with "file:" like Firefox internal pages that start with "about:".

But it's not working questionably (I would appreciate any explanation to why it's not working):
^((about|chrome|mailto|https|file|resource):
Any ideas? Thank you.

lith

unread,
Jul 25, 2016, 2:48:33 AM7/25/16
to shelve-fir...@googlegroups.com
What exactly are you trying to achieve? What is the definition of the "shelve" you're using? When exactly does the problem occur? Does the problem also occur for https:// or about: pages etc.? (The regexp has one opening parenthesis too many which you should remove.)


--
You received this message because you are subscribed to the Google Groups "Shelve Firefox Add-on" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shelve-firefox-a...@googlegroups.com.
To post to this group, send email to shelve-fir...@googlegroups.com.
Visit this group at https://groups.google.com/group/shelve-firefox-addon.
For more options, visit https://groups.google.com/d/optout.

Salar Zeynali

unread,
Jul 26, 2016, 1:26:05 PM7/26/16
to Shelve Firefox Add-on
I just want to exclude URLs to files and folders on computer from being autosaved. In fact, excluding URLs starting with "file:".

Here is an example:
"file:///C:/Users/Sx/AppData/Local/Shelve/ShelveLogger.html"

The problem is whenever I open ShelveLogger's log file it gets autosaved itself.

Thank you.


On Monday, July 25, 2016 at 11:18:33 AM UTC+4:30, lith wrote:
What exactly are you trying to achieve? What is the definition of the "shelve" you're using? When exactly does the problem occur? Does the problem also occur for https:// or about: pages etc.? (The regexp has one opening parenthesis too many which you should remove.)

2016-07-25 0:21 GMT+02:00 Salar Zeynali <sal...@gmail.com>:
Hello,

First I want to thank the developer for this great extension he has made. I can't think of Firefox without Shelve anymore! Wish I had found it sooner...

Anyway, the title says all. I can't understand regex's syntax though I have tried to learn it many times, my mind just can't get used to it's syntax.

So the only thing coming to my mind (and pretty obviously!) is this, as file URLs start with "file:" like Firefox internal pages that start with "about:".

But it's not working questionably (I would appreciate any explanation to why it's not working):
^((about|chrome|mailto|https|file|resource):
Any ideas? Thank you.

--
You received this message because you are subscribed to the Google Groups "Shelve Firefox Add-on" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shelve-firefox-addon+unsub...@googlegroups.com.

tom

unread,
Jul 26, 2016, 1:29:37 PM7/26/16
to shelve-fir...@googlegroups.com


Did you try `^(about|chrome|mailto|https|file|resource):` (without the superfluous opening parenthesis?)

If it doesn't work, I'll have to look into it which could take a while due to a general lack of spare time.


The problem is whenever I open ShelveLogger's log file it gets autosaved itself.

There are two ways to "autosave" pages. (1) Save a page and set a tick on the auto-save checkbox. (2) Define a shelve pages matching a certain regexp are saved to.

Salar Zeynali

unread,
Jul 26, 2016, 4:16:24 PM7/26/16
to Shelve Firefox Add-on
Did you try `^(about|chrome|mailto|https|file|resource):` (without the superfluous opening parenthesis?)

Yes, but unfortunately it didn't make a change. Local files are still being autosaved.

tom

unread,
Aug 14, 2016, 2:14:14 AM8/14/16
to shelve-fir...@googlegroups.com
I cannot tell when I will be able to investigate this issue. In the
meantime, could you please define a "catch all" shelf where "auto-save"
is set on and the regexp is set to "^https?:" (without the quotes).

Reply all
Reply to author
Forward
0 new messages