mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 00:28:00 +01:00
Integrate sanitizer with host UI, sanitize at shutdown support, and control which items are sanitized when more thoroughly. Closes issue #70.
This commit is contained in:
@@ -288,6 +288,8 @@ const Marks = Module("marks", {
|
||||
sanitizer: function () {
|
||||
sanitizer.addItem("marks", {
|
||||
description: "Local and URL marks",
|
||||
persistent: true,
|
||||
contains: ["history"],
|
||||
action: function (timespan, host) {
|
||||
function matchhost(url) !host || util.isDomainURL(url, host);
|
||||
function match(marks) (k for ([k, v] in Iterator(marks)) if (timespan.contains(v.timestamp) && matchhost(v.location)));
|
||||
|
||||
Reference in New Issue
Block a user