Add wildcard to the ignored URL

This commit is contained in:
varjolintu 2020-06-21 13:54:05 +03:00
parent d518662696
commit f49b0bcd9e

View file

@ -107,7 +107,8 @@ kpxcBanner.create = async function(credentials = {}) {
kpxcBanner.banner.removeChild(dialog);
} else {
if (ignoreCheckbox.checked) {
kpxc.ignoreSite([ window.top.location.href ]);
const ignoreUrl = window.location.href.slice(0, window.location.href.lastIndexOf('/') + 1) + '*';
kpxc.ignoreSite([ ignoreUrl ]);
}
kpxcBanner.destroy();
}