${this.filterList.map((item, index) => html`
`)}
`;
}
handleChange(e, item) {
item.enabled = e.target.checked;
}
handleSave() {
config.filterList = this.filterList
// Save to GM storage
GM_setValue('dreamqi-bingSearch-config', config);
// Remove the component
this.remove();
// Reload page to apply new filters
// window.location.reload();
}
async handleAddFilter() {
const { value: formValues } = await Swal.fire({
title: '添加新过滤',
html: `