This gadget hasn't been showing up for me lately, my browser console suggests it's a CORS issue:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://xtools.wmflabs.org/api/page/articleinfo/en.wikipedia.org/Draft:Eric_Garland?format=html&uselang=en. (Reason: CORS request did not succeed).
Topic on Talk:XTools/ArticleInfo.js
What browser are you using? Nothing changed on the XTools-side. It should accept requests from any origin. E.g.:
curl -i -H 'Origin: https://example.org' 'https://xtools.wmflabs.org/api/page/articleinfo/en.wikipedia.org/Draft:Eric_Garland?format=html&uselang=en'
running this, I see access-control-allow-origin: https://example.org
in the response headers.
On my side, this errors out with "Blocked loading mixed active content “http://xtools.wmflabs.org/api/page/articleinfo/en.wikipedia.org/Draft:Eric_Garland?format=html&uselang=en”". Changing http:// to https:// in the script fixed it for me.
I can't find the source of the script, so I can't send a PR - at least commenting here :).
PS: I'm using FF.
I'm using Firefox 81 + Win10.
The deployed version has no specified protocol and has not been touched in almost exactly a year, and the enwiki gadget explicitly uses https. The script generated by the app (intended to be copied/pasted to the wiki) still generates http instead of https, though, and the uglified version is broken (phab:T256582). So I'm not sure what script you are using, @Martin Urbanec, but regardless I believe your issue is separate from what GeneralNotability is reporting.
I tested in Firefox 81 and all is working fine. I can't test on Windows, but that shouldn't matter. @GeneralNotability are you seeing this issue on all wikis?
I used mw.loader.load(LINKTOXTOOLSJSFILE), see https://ctrlv.tv/xUsz for a screencast. It works with https.
I'm using this script via my global.js using the method suggested at XTools#Installation on Wikimedia wikis, import line is mw.loader.load('//www.mediawiki.org/w/index.php?title=XTools/ArticleInfo.js&action=raw&ctype=text/javascript');
. I spot-checked and I'm definitely seeing this issue on multiple wikis.
Weirdly enough, it works for me when I use the mw.loader.load('//www.mediawiki.org/w/index.php?title=XTools/ArticleInfo.js&action=raw&ctype=text/javascript');
snippet.