If a website hasn't been visited recently (e.g. the last 6 months) don't consider it a "known site". For example the website might have only been opened once or a few times without the user fully trusting the website, or (more slightly more unlikely) the domain might have changed owners in the meantime.
Could possibly use the startTime parameter of the history.search() function for that.
Open questions:
How to handle extension API result limits?
The extension API has a results limit for some of the calls; if the results only include older visits, but newer visits are omitted due to the results limit then this would erroneously block the website.
A solution could be check for the extension APIs which allow to specify an explicit max results limit, whether that limit has been reached. If it has, then don't perform this 'recently visited' check (?), otherwise if the limit has not been reached can check all results.
If a website hasn't been visited recently (e.g. the last 6 months) don't consider it a "known site". For example the website might have only been opened once or a few times without the user fully trusting the website, or (more slightly more unlikely) the domain might have changed owners in the meantime.
Could possibly use the
startTime
parameter of thehistory.search()
function for that.Open questions: