It is necessary to change the script so that the timer numbers are at the beginning of the tab, and not at the end.

// ==UserScript== // @include * // ==/UserScript== defTitle=document.title; startTime=new Date().getTime(); window.setInterval(function(){ document.title=defTitle+' - '+Math.round((new Date().getTime()-startTime)/1000); }, 1000); 
  • Normally draw up and it is not clear - igolka97
  • @Nikolay Suprun, To format a code, select it with the mouse and click on the {} button of the editor. - Sleeping Owl

1 answer 1

 defTitle=document.title; startTime=new Date().getTime(); window.setInterval(function(){ document.title=Math.round((new Date().getTime()-startTime)/1000)+' - '+defTitle; },1000); 
  • Exactly what is needed! Thank you so much! - Nikolay Suprun
  • @Nikolay Suprun, If you are given a comprehensive answer, mark it as correct (click on the check mark next to the selected answer). - Sleeping Owl