User:Polygnotus/Scripts/ToolsLink.js: Difference between revisions

Content deleted Content added
Created page with 'mw.hook('wikipage.content').add(function() { mw.loader.using(['mediawiki.util'], function() { // Only add the link if it doesn't already exist if (!document.getElementById('t-mycustomtool2')) { //linkid mw.util.addPortletLink( 'p-tb', //Target portlet ID (Tools menu) 'https://tools.wmflabs.org/', //linkurl 'Wikimedia Tools', //linktext...'
 
No edit summary
 
Line 1:
//This script shows how to add a link to the Tools menu
 
mw.hook('wikipage.content').add(function() {
mw.loader.using(['mediawiki.util'], function() {