User:Axel Pettersson (WMSE)/Common.js

// d:User:Yair rand/WikidataInfo.js mw.loader.load("//www.wikidata.org/w/index.php?title=User:Yair rand/WikidataInfo.js&action=raw&ctype=text/javascript"); //OpenStreetMap i Wikipediaartikeln mw.loader.load("//sv.wikipedia.org/w/index.php?title=Användare:André_Costa_(WMSE)/openStreetMapToggle.js&action=raw&ctype=text/javascript"); //Wiki view stats function viewstats { if (wgCanonicalNamespace == "Special") return; mw.util.addPortletLink('p-cactions', 'https://tools.wmflabs.org/wikiviewstats/index.php?lang=sv&project=&page=' + wgPageName, "viewstats", "ca-viewstats", "Se statistik på Wiki view stats"); } $(viewstats);

//ChatGPT summary https://phabricator.wikimedia.org/T336692 mw.loader .using(["oojs-ui-core", "oojs-ui.styles.icons-content"]) .done(function {        var version = Date.now;        $.when( mw.loader.getScript('https://tonythomas01.github.io/wikipedia-section-summaries/sectionFinder.js', 'text/javascript'), mw.loader.getScript('https://tonythomas01.github.io/wikipedia-section-summaries/widget.js', 'text/javascript'), mw.loader.load("https://tonythomas01.github.io/wikipedia-section-summaries/widget.css", "text/css") ).then( function { initializeSectionSummarizer; },           function (e) { mw.log.error(e.message); }       );    });