Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is a workaround.</p> <pre><code>window.timeoutList = new Array(); window.intervalList = new Array(); window.oldSetTimeout = window.setTimeout; window.oldSetInterval = window.setInterval; window.oldClearTimeout = window.clearTimeout; window.oldClearInterval = window.clearInterval; window.setTimeout = function(code, delay) { var retval = window.oldSetTimeout(code, delay); window.timeoutList.push(retval); return retval; }; window.clearTimeout = function(id) { var ind = window.timeoutList.indexOf(id); if(ind &gt;= 0) { window.timeoutList.splice(ind, 1); } var retval = window.oldClearTimeout(id); return retval; }; window.setInterval = function(code, delay) { var retval = window.oldSetInterval(code, delay); window.intervalList.push(retval); return retval; }; window.clearInterval = function(id) { var ind = window.intervalList.indexOf(id); if(ind &gt;= 0) { window.intervalList.splice(ind, 1); } var retval = window.oldClearInterval(id); return retval; }; window.clearAllTimeouts = function() { for(var i in window.timeoutList) { window.oldClearTimeout(window.timeoutList[i]); } window.timeoutList = new Array(); }; window.clearAllIntervals = function() { for(var i in window.intervalList) { window.oldClearInterval(window.intervalList[i]); } window.intervalList = new Array(); }; </code></pre> <p>It works for set/clear timeout/interval functions called after these lines are executed. Try and see it works:</p> <pre><code>setInterval('console.log(\'a\')', 1000); setInterval('console.log(\'b\')', 500); setInterval('console.log(\'c\')', 750); setTimeout('clearAllIntervals()', 10000); </code></pre> <p>Proxying does the magic.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload