Skip to content

Commit

Permalink
update local rules
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka committed Jan 21, 2025
1 parent 7c7cc72 commit 981e29f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Extension/filters/chromium-mv3/local_script_rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -7229,5 +7229,12 @@ export const localScriptRules = {
} catch (e) {
console.error("Error executing AG js: " + e);
}
},
"console.log(Date.now(), 'script rule is executed');": () => {
try {
console.log(Date.now(), "script rule is executed");
} catch (e) {
console.error("Error executing AG js: " + e);
}
}
};
3 changes: 2 additions & 1 deletion Extension/filters/chromium-mv3/local_scriptlet_rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -7881,5 +7881,6 @@ export const localScriptletRules = {
'//scriptlet("set-constant", "firstVal", "false")': true,
'//scriptlet("set-constant", "secondVal", "true")': true,
'//scriptlet("set-constant", "testVal", "true")': true,
'//scriptlet("prevent-eval-if")': true
'//scriptlet("prevent-eval-if")': true,
"//scriptlet('log', 'scriptlet rule is executed')": true
};

0 comments on commit 981e29f

Please sign in to comment.