diff --git a/src/js/scriptlet-filtering.js b/src/js/scriptlet-filtering.js index 8cddeede1..7bc406548 100644 --- a/src/js/scriptlet-filtering.js +++ b/src/js/scriptlet-filtering.js @@ -213,7 +213,10 @@ const patchScriptlet = function(content, args) { for ( let i = 0; i < arglist.length; i++ ) { content = content.replace(`{{${i+1}}}`, arglist[i]); } - return content.replace('{{args}}', arglist.map(a => `'${a}'`).join(', ')); + return content.replace( + '{{args}}', + arglist.map(a => `'${a}'`).join(', ').replace(/\$/g, '$$$') + ); }; const logOne = function(tabId, url, filter) {