User:Shuri1202/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:User Admin Tools.js',        'u:dev:MediaWiki:AddSideTool.js',    ] });

mw.hook('dev.addSideTool').add(function (addSideTool) { const sideTool = addSideTool("💡"),    $button = sideTool.$button,    $tooltip = sideTool.$tooltip;

$tooltip.text("保護する"); $button.on('click', function {   location = 'https://www.google.com';  }); });