Jump to content

MediaWiki:Common.js: Difference between revisions

hmm?
m (oops)
(hmm?)
Line 517: Line 517:
  *  Maintainers: [[User:Iritscen]]
  *  Maintainers: [[User:Iritscen]]
  */
  */
function wikiSleep(ms)
{
    return new Promise(resolve => setTimeout(resolve, ms));
}


async function sortSortableTables()
async function sortSortableTables()
{
{
     await wikiSleep(2000);
     await new Promise(r => setTimeout(() => r(), 2000));
     console.log("Sorting the autosort tables.");
     console.log("Sorting the autosort tables.");
     // Iterate over all <div> elements
     // Iterate over all <div> elements