[Support] Historia


(erosman) #21

For example with reddit

Removes anything with a path (ie it has something after reddit.com/)
^ means the URL starts with
? means one character so /? means at least one character after /
^https://www.reddit.com/?

You can also use this but above is more precise
reddit.com/?

Above will delete all reddit URLs except the main site https://www.reddit.com/


(erosman) #23

What do you mean?
To delete all history for all sites?
That is possible from Firefox Options -> History -> Never Remember History

Do you mean add multiple sites with one line?
That is possible with Regular Expression but a very long one may not be easy to maintain e.g.

/^https?://(www\.reddit\.com|youtube\.com|example\.org|other\.net)/.+/


(Liindd94) #24

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)


(erosman) #25

I see… Try this one: /^https?://[^/]+/.+/


(erosman) #27

Try this: /^https?://[^/]+/(?!sv-se).+/

PS. I updated the previous one


(erosman) #29

You are getting into more complicated Regular Expressions :wink:

For example: /^https?://[^/]+/(?!(sv-se|this|that|other)).+/


(Liindd94) #30

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)


(erosman) #31

Note:
It is case-insensitive
You have overlapping pasterns
Not followed by se will also be true for se/sv_se, se/webapps/mpp/home
Same with sv and sv-SE/firefox

The Regular Expression is passed to new RegExp() so no need to escape slashes /

try this:
/^https?://[^/]+/(?!(se|sv|en|android|drive|#|home|owa)).+/

So it wont delete these:

http://www.website.com/se/example
http://www.website.com/se/
http://www.website.com/se
http://www.website.com/service (starts with se + ervice)
http://www.website.com/sv/example
http://www.website.com/se/sv_se/example
http://www.website.com/sv-SE/firefox/example
http://www.website.com/se/example
http://www.website.com/
http://www.website.com/#anb
http://www.website.com/home
http://www.website.com/homes

It will delete these:

http://www.website.com/abc
http://www.website.com/1home

It is possible to write as complex a Regular Expression as wanted.


(erosman) #33

It would be better to list them one by one… or … you can create a/few Regular Expression/s for it.

Regular Expressions are for advanced users and complex ones are for very advanced users.

You can ask in general forum for help in creating one to your specification.

Once you have done that, if there are any problems in using it in Historia, let me know.