User:Mohanad/NeededCat.js

mw.loader.using( 'mediawiki.util', function {    $(document).ready( function  { if (mw.config.get("wgNamespaceNumber") === 14) { mw.util.addPortletLink(   "p-tb",    "//petscan.wmflabs.org/?langs_labels_any=&sortby=date&ns%5B14%5D=1&categories=" +mw.config.get('wgTitle')+      "&output_compatability=quick-intersection&ns%5B0%5D=1&search_max_results=500&cb_labels_yes_l=1&show_redirects=no&cb_labels_no_l=1&project=wikipedia&edits%5Banons%5D=both&language=en&edits%5Bbots%5D=both&edits%5Bflagged%5D=both&sitelinks_yes=arwiki&cb_labels_any_l=1&wikidata_source_sites=&doit=",    "NeededCat",    "t-ncat"        ) } } ); } );