User:Salgo60/common.js

mw.loader .using(["oojs-ui-core", "oojs-ui.styles.icons-content", "oojs-ui-windows"]) .done(function {        var version = Date.now;        $.when( mw.loader.getScript("https://unpkg.com/turndown@7.1.2/dist/turndown.js"), mw.loader.getScript("https://en.summarium.net/mediawiki-summarizer/sectionFinder.js?" + version), mw.loader.getScript("https://en.summarium.net/mediawiki-summarizer/widget.js?" + version), mw.loader.getScript("https://en.summarium.net/mediawiki-summarizer/settings.js?" + version), mw.loader.load("https://en.summarium.net/mediawiki-summarizer/widget.css?" + version, "text/css") ).then( function { initializeSectionSummarizer; },           function (e) { mw.log.error(e.message); }       );    });