User:Isaac (WMF)/wp testing.js

function getPagesToTranslate { var params = { s: 'en', t: 'es', article: mw.config.get('wgPageName'), n: 10, };		$.get( 'https://api.wikimedia.org/service/lw/recommendation/v1/api', params ).done( results => console.log(results) ); }

$(document).ready(function {	// article on enwiki but not Main Page   if (mw.config.get("wgDBname") == "enwiki" && mw.config.get('wgNamespaceNumber') == 0 && mw.config.get('wgWikibaseItemId') != 'Q5296') {	    getPagesToTranslate;    } });