Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
hostname,
url,
// DOM information
classes,
hrefs,
ids,
});
// Abort if cosmetics are disabled
if (active === true) {
// Inject scripts
for (let i = 0; i < scripts.length; i += 1) {
frame
.addScriptTag({
content: autoRemoveScript(scripts[i]),
})
.catch(() => {
// Ignore
});
}
// Inject CSS
if (styles.length !== 0) {
frame
.addStyleTag({
content: styles,
})
.catch(() => {
// Ignore
});
}