User:So9q/wcdimportbot-add-job.js

// Title: Add new job for this article to wcdimportbot // Author: So9q // Date: 2022 // Inspired by https://en.wikipedia.org/wiki/User:Dipankan001/New_pages.js // Note: This user script was created as part of wcdimportbot, see https://www.wikidata.org/wiki/Q115252313

function addPortletLink{ mw.util.addPortletLink(         "p-tb",          "http://18.217.22.248/v1/add-job?lang=en&site=wikipedia&title=" + mw.config.get( 'wgPageName' ),          "Add wcdimportbot job",          "tb-wcdimportbot-add-job",          "Add new job for this article to wcdimportbot"          ); }

if(mw.config.values.wgNamespaceNumber === 0) { $(addPortletLink); }

//