@@ -732,7 +732,7 @@ registerScriptlet(trustedEditElementObject, {
732732/******************************************************************************/
733733/******************************************************************************/
734734
735- function jsonEditXhrResponseFn ( trusted , jsonq = '' ) {
735+ function jsonEditXhrResponseFn ( trusted , jsonq = '' , ... varargs ) {
736736 const safe = safeSelf ( ) ;
737737 const logPrefix = safe . makeLogPrefix (
738738 `${ trusted ? 'trusted-' : '' } json-edit-xhr-response` ,
@@ -743,7 +743,7 @@ function jsonEditXhrResponseFn(trusted, jsonq = '') {
743743 if ( jsonp . valid === false || jsonp . value !== undefined && trusted !== true ) {
744744 return safe . uboLog ( logPrefix , 'Bad JSONPath query' ) ;
745745 }
746- const extraArgs = safe . getExtraArgs ( Array . from ( arguments ) , 2 ) ;
746+ const extraArgs = safe . parseVarargs ( varargs ) ;
747747 const propNeedles = parsePropertiesToMatchFn ( extraArgs . propsToMatch , 'url' ) ;
748748 self . XMLHttpRequest = class extends self . XMLHttpRequest {
749749 open ( method , url , ...args ) {
@@ -867,7 +867,7 @@ registerScriptlet(trustedJsonEditXhrResponse, {
867867/******************************************************************************/
868868/******************************************************************************/
869869
870- function jsonEditXhrRequestFn ( trusted , jsonq = '' ) {
870+ function jsonEditXhrRequestFn ( trusted , jsonq = '' , ... varargs ) {
871871 const safe = safeSelf ( ) ;
872872 const logPrefix = safe . makeLogPrefix (
873873 `${ trusted ? 'trusted-' : '' } json-edit-xhr-request` ,
@@ -878,7 +878,7 @@ function jsonEditXhrRequestFn(trusted, jsonq = '') {
878878 if ( jsonp . valid === false || jsonp . value !== undefined && trusted !== true ) {
879879 return safe . uboLog ( logPrefix , 'Bad JSONPath query' ) ;
880880 }
881- const extraArgs = safe . getExtraArgs ( Array . from ( arguments ) , 2 ) ;
881+ const extraArgs = safe . parseVarargs ( varargs ) ;
882882 const propNeedles = parsePropertiesToMatchFn ( extraArgs . propsToMatch , 'url' ) ;
883883 self . XMLHttpRequest = class extends self . XMLHttpRequest {
884884 open ( method , url , ...args ) {
@@ -985,7 +985,7 @@ registerScriptlet(trustedJsonEditXhrRequest, {
985985/******************************************************************************/
986986/******************************************************************************/
987987
988- function jsonEditFetchResponseFn ( trusted , jsonq = '' ) {
988+ function jsonEditFetchResponseFn ( trusted , jsonq = '' , ... varargs ) {
989989 const safe = safeSelf ( ) ;
990990 const logPrefix = safe . makeLogPrefix (
991991 `${ trusted ? 'trusted-' : '' } json-edit-fetch-response` ,
@@ -995,7 +995,7 @@ function jsonEditFetchResponseFn(trusted, jsonq = '') {
995995 if ( jsonp . valid === false || jsonp . value !== undefined && trusted !== true ) {
996996 return safe . uboLog ( logPrefix , 'Bad JSONPath query' ) ;
997997 }
998- const extraArgs = safe . getExtraArgs ( Array . from ( arguments ) , 2 ) ;
998+ const extraArgs = safe . parseVarargs ( varargs ) ;
999999 const propNeedles = parsePropertiesToMatchFn ( extraArgs . propsToMatch , 'url' ) ;
10001000 proxyApplyFn ( 'fetch' , function ( context ) {
10011001 const args = context . callArgs ;
@@ -1107,7 +1107,7 @@ registerScriptlet(trustedJsonEditFetchResponse, {
11071107/******************************************************************************/
11081108/******************************************************************************/
11091109
1110- function jsonEditFetchRequestFn ( trusted , jsonq = '' ) {
1110+ function jsonEditFetchRequestFn ( trusted , jsonq = '' , ... varargs ) {
11111111 const safe = safeSelf ( ) ;
11121112 const logPrefix = safe . makeLogPrefix (
11131113 `${ trusted ? 'trusted-' : '' } json-edit-fetch-request` ,
@@ -1117,7 +1117,7 @@ function jsonEditFetchRequestFn(trusted, jsonq = '') {
11171117 if ( jsonp . valid === false || jsonp . value !== undefined && trusted !== true ) {
11181118 return safe . uboLog ( logPrefix , 'Bad JSONPath query' ) ;
11191119 }
1120- const extraArgs = safe . getExtraArgs ( Array . from ( arguments ) , 2 ) ;
1120+ const extraArgs = safe . parseVarargs ( varargs ) ;
11211121 const propNeedles = parsePropertiesToMatchFn ( extraArgs . propsToMatch , 'url' ) ;
11221122 const filterBody = body => {
11231123 if ( typeof body !== 'string' ) { return ; }
@@ -1256,7 +1256,7 @@ registerScriptlet(jsonlEditFn, {
12561256
12571257/******************************************************************************/
12581258
1259- function jsonlEditXhrResponseFn ( trusted , jsonq = '' ) {
1259+ function jsonlEditXhrResponseFn ( trusted , jsonq = '' , ... varargs ) {
12601260 const safe = safeSelf ( ) ;
12611261 const logPrefix = safe . makeLogPrefix (
12621262 `${ trusted ? 'trusted-' : '' } jsonl-edit-xhr-response` ,
@@ -1267,7 +1267,7 @@ function jsonlEditXhrResponseFn(trusted, jsonq = '') {
12671267 if ( jsonp . valid === false || jsonp . value !== undefined && trusted !== true ) {
12681268 return safe . uboLog ( logPrefix , 'Bad JSONPath query' ) ;
12691269 }
1270- const extraArgs = safe . getExtraArgs ( Array . from ( arguments ) , 2 ) ;
1270+ const extraArgs = safe . parseVarargs ( varargs ) ;
12711271 const propNeedles = parsePropertiesToMatchFn ( extraArgs . propsToMatch , 'url' ) ;
12721272 self . XMLHttpRequest = class extends self . XMLHttpRequest {
12731273 open ( method , url , ...args ) {
@@ -1384,7 +1384,7 @@ registerScriptlet(trustedJsonlEditXhrResponse, {
13841384/******************************************************************************/
13851385/******************************************************************************/
13861386
1387- function jsonlEditFetchResponseFn ( trusted , jsonq = '' ) {
1387+ function jsonlEditFetchResponseFn ( trusted , jsonq = '' , ... varargs ) {
13881388 const safe = safeSelf ( ) ;
13891389 const logPrefix = safe . makeLogPrefix (
13901390 `${ trusted ? 'trusted-' : '' } jsonl-edit-fetch-response` ,
@@ -1394,7 +1394,7 @@ function jsonlEditFetchResponseFn(trusted, jsonq = '') {
13941394 if ( jsonp . valid === false || jsonp . value !== undefined && trusted !== true ) {
13951395 return safe . uboLog ( logPrefix , 'Bad JSONPath query' ) ;
13961396 }
1397- const extraArgs = safe . getExtraArgs ( Array . from ( arguments ) , 2 ) ;
1397+ const extraArgs = safe . parseVarargs ( varargs ) ;
13981398 const propNeedles = parsePropertiesToMatchFn ( extraArgs . propsToMatch , 'url' ) ;
13991399 const logall = jsonq === '' ;
14001400 proxyApplyFn ( 'fetch' , function ( context ) {
0 commit comments