User:Mr Pie 5/common.js

/* mass copy usernames from lookupuser for easier bulk phalanx */ $(function{   var $names = $('.lookup-user__form select[name="username"]');    if(!$names){return}

$button = $(" Copy "); $button.on('click', function(e){       e.preventDefault;        var output = ""        for(var i = 0; i < $names.children.length; i++){            output += $names.children[i].value + '\n';        }        navigator.clipboard.writeText(output.trim);    }) $button.insertAfter($names); })