Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is the bookmarklet <strong>code #1</strong> for you, set up to FIVE seconds. Change time to what you like more.</p> <pre><code>javascript: (function () { var q = null; function refresh() { window.location.reload(); } function x() { clearTimeout(q); a(); } function a() { q = setTimeout( refresh, 5000 ); } document.body.onclick = x; document.body.onmousemove = x; document.body.onmousedown = x; document.body.onkeydown = x; }()) </code></pre> <p>p.s.: would have been nicer to include eventListeners, but i suppose you need to support IE8, too, so i replaced them with inline events, - if you DON'T need IE8, use <strong>code #2</strong>:</p> <pre><code>javascript: (function () { var q = null; function refresh() { window.location.reload(); } function x() { clearTimeout(q); a(); } function a() { q = setTimeout( refresh, 5000 ); } document.body.addEventListener( "click", x, false ); document.body.addEventListener( "mousemove", x, false ); document.body.addEventListener( "mousedown", x, false ); document.body.addEventListener( "keydown", x, false ); }()) </code></pre> <p><strong>edit:</strong> in response to comments, here is <strong>code #3</strong> with pulling, instead of refreshing page. Yet, despite advices to use <code>iframe</code>, i decided it might be desirable to not execute scripts on that page, so we will use <code>img</code> instead:</p> <pre><code>javascript: (function () { var q = null; var u = window.location.href; var i = document.createElement('img'); i.style = "width: 1px; height: 1px;"; document.body.appendChild(i); function refresh() { i.src = ""; i.src = u; x(); } function x() { clearTimeout(q); a(); } function a() { q = setTimeout( refresh, 5000 ); } var evs = ['click', 'mousemove', 'mousedown', 'keydown']; for( var j = 0; j &lt; evs.length; j++) { document.body['on'+evs[j]] = x; } }()) </code></pre>
    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