[06:40:41] [[Tech]]; MKar; /* ଓଡ଼ିଆ ଉଇକିପିଡ଼ିଆରେ ବନାନ ଅଶୁଦ୍ଧି */ ସଂଶୋଧନ କରାଗଲା (fixed); https://meta.wikimedia.org/w/index.php?diff=15479026&oldid=15477239&rcid=7577892 [13:50:53] hey [13:51:32] so what is the best way ti import and exectue a javascript file on wiki's imagepage [13:52:11] just simple $out->addHtml does the trick just fine? [14:02:58] Harri, you should be using ResourceLoader [14:03:14] not the easiest way, but the correct way [14:18:55] yeah im familiar with it [14:19:09] problem is, i also want to pass arguments [15:39:26] I have an OAuth security question. Would it be a security risk to publish the consumer token and secret for an OAuth app that authenticates to localhost? The idea here is that it would be useful to be able to distribute a ready-to-go development configuration for my app without requiring each new developer to register their own consumer. [15:41:08] I can't think of how to abuse that, since you can still only use it for an account that you have access to... and anyone could just register a personal use consumer if they wanted to funnel bad actions through OAuth. [15:41:59] tgr anomie ^ [15:42:33] legoktm: ^ [16:21:40] also, what does this mean: "Your MediaWiki user can authorize your OAuth app while waiting for approval," -- what exactly do I need to do after submitting my request, to "authorize" it for myself? [16:41:06] abartov: any consumer is immediately available for the account that registers it. [16:41:46] so no extra steps are necessary to authorize it for yourself. [16:42:09] but if you don't check the box saying it is only for you, then it will remain 'proposed' and then expire after one month. [16:42:40] if you do check that box, then it is automatically approved immediately [18:54:59] ragesoss: thanks. I did check the box. [21:07:08] [[Tech]]; Gnom; /* Reduce the environmental impact of the Wikimedia movement */ new section; https://meta.wikimedia.org/w/index.php?diff=15479871&oldid=15479026&rcid=7579360 [21:10:27] i cannot seem to get the scripts to load in imagepage [21:10:56] though i added the code to resources.php [21:11:12] 'imagepage' => [ [21:11:12] 'position' => 'top', [21:11:12] 'class' => 'ResourceLoaderWikiModule', [21:11:12] 'scripts' => [ [21:11:32] is this syntax correct regarding imagepage.php? [21:32:27] that just defines the module, it doesn't load it anywhere. you'll need to do $outputPage->addModules('imagepage') somewhere where you want it loaded. (it's better to choose a more unique name.) [21:34:26] thats the thing though, i dont want to create a separate module [21:35:08] instead i want to load scripüts straight on imagepage [21:35:14] if you're writing an extension and you want it to load some JS or CSS somewhere, you most definitely do [21:35:42] thats what i meant actually [21:35:54] i dont want to write a separate extension for it [21:36:24] fwiu, working in core is also an option [21:39:36] or am I not able just plainly load a script on imagepage