erosman
(erosman)
April 27, 2018, 7:51pm
21
LIINdd:
Is there possible to add support (or maybe itās possible right now, I have not been able to figure it out yet) for removing(keeping out of history) for all the sub websites, for example with YouTube, it saves YouTube.com , but YouTube.com/watchblabla gets filtered out (this is a problem on a lot of websites, Reddit is another example.)
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
(erosman)
April 29, 2018, 3:46am
23
LIINdd:
is there any possible way to make it for every website with just one line?
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)/.+/
LIINdd
(Liindd94)
April 29, 2018, 3:27pm
24
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)
erosman
(erosman)
April 29, 2018, 5:20pm
25
I seeā¦ Try this one: /^https?://[^/]+/.+/
erosman
(erosman)
April 30, 2018, 6:47pm
27
LIINdd:
That one works like a charm, only problem I find is that it deletes some sites that requires /sv-se etc for their home pages, but thatās to be expected.
Try this: /^https?://[^/]+/(?!sv-se).+/
PS. I updated the previous one
erosman
(erosman)
May 1, 2018, 5:05am
29
LIINdd:
If I want to add more than just sv-se do I add more (?!examples) before the .+/ or do I just add them next to in some other way?
You are getting into more complicated Regular Expressions
For example: /^https?://[^/]+/(?!(sv-se|this|that|other)).+/
LIINdd
(Liindd94)
May 1, 2018, 1:18pm
30
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)
erosman
(erosman)
May 1, 2018, 4:27pm
31
LIINdd:
Iām kind of impressed this addon can even do this, itās amazing, thanks! I hope this one works;
/^https?://[^/]+/(?!(sv|en|android|drive|#|se|home|se/sv_se|owa|se/webapps/mpp/home|sv-SE/firefox)).+/
It works, but it doesnāt delete urls after the mentioned home pages, so www.website.com/se/example gets saved anyways, rather than just the www.website.com/se website.
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
(erosman)
May 1, 2018, 6:23pm
33
LIINdd:
But I donāt want any history after that to save, for example nikeās website, having that filter rule it saves this aswell;
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.
Lnice
(Lnice)
July 20, 2018, 12:09pm
35
Will this add-on ever be supported in Chrome or Opera?
erosman
(erosman)
July 20, 2018, 12:52pm
36
Currently, I only make add-ons for Firefox.
Lnice
(Lnice)
July 20, 2018, 3:17pm
37
Thatās a shame, thanks for answer.