Page MenuHomeMiraheze

Install extension ImportArticles on tmewiki
Closed, DeclinedPublic

Description

Wiki URL: https://tme.miraheze.org

Please install the extension ImportArticles on the wiki.

Event Timeline

The point of this extension is to dynamically load JS and CSS from multiple wiki pages at once isn't it? And inject them into the page with <script> and <style> elements.

I'm not quite sure what problem this solves. Isn't this sort of thing better solved by Gadgets? Or just multiple calls to mw.loader.load() so that at least the retrieved code can take advantage of browser caching.

But that's beside the point. The extension itself looks okay, it doesn't seem to do anything too bad. The API URL appears to be hard-coded as '/api.php' which could be incorrect, but at least reduces the possibility of loading from elsewhere. There doesn't seem to be anything restricting this to only load .js or .css pages, but that's hardly a security problem considering that whoever's able to use this extension can just modify things directly anyway.

(And forgive me if I've missed the point here completely, I've just got off 23 hours of flying and am perhaps non compos mentis!)

Well I take Sams comments as an approval.

I would upload the extension myself but I doubt I can do that. So I will have to leave it to a Mediawiki system administrator. @revi @NDKilla @Reception123

@CnocBride You can do that! :)

@Samwilson could you please clarify if it's an approval, as I don't see a clear approval.

Looking at this again, I think it's a decline. This doesn't do anything useful, and doesn't work at all in a bunch of situations (e.g. different $wgScriptPath). It also doesn't use standard MediaWiki ways of doing things.

@stranger195 what is your use case? Can you explain what you're trying to achieve here?

John claimed this task.