Jump to content

User:Mjoppien/monobook.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// [[User:Lupin/popups.js]] - please include this line 
//importScript('User:Lupin/popups.js');
 
//simplePopups=true;
popupDelay = 1.5 ;
popupStructure = 'original';

popupSummaryData = false;
popupActionsMenu = false;
popupNavLinks = false;
popupPreviewFirstParOnly = false;

//A clock that autoupdates
//From the user scripts project
/*addOnloadHook(loadclocks)*/
function loadclocks()
{
  if (document.getElementById('utcdate1')) { showtime('utcdate1', 1);}
  if (document.getElementById('utcdate-1')) { showtime('utcdate-1', -1);}

}

function showtime(id, offset)
{
    var timerId ;
    var zeit = new Date();
    sec = zeit.getTime() ;
    zeit.setTime(sec + offset*(60 * 60 * 1000) );  //
 
    var timeValue = zeit.toGMTString().substring(16,25);
/*    if (document.getElementById(id))
     {document.getElementById(id).firstChild.innerHTML = zeit.toGMTString() + '%' + timeValue +'*' + zeit.toLocaleString();} */

alert('aa' + document.getElementById(id).length);
    for (var i = 0; i < document.getElementsById(id).length; i++ )
      {(document.getElementsById(id)[i]).firstChild.innerHTML = zeit.toGMTString() + '%' + timeValue +'*' + zeit.toLocaleString();}
//    timerID = setTimeout('showtime("'+id+'",'+offset+')', 1000);
}


//[[User:MarkS/extraeditbuttons.js]]



// [[User:Zocky/SearchBox.js]]
mw.loader.load('https://wiki.riteme.site/w/index.php?title=User:Zocky/SearchBox.js' 
             + '&action=raw&ctype=text/javascript');