User:Irukaza/js/queryContributions.js:修订间差异

跳到导航 跳到搜索
无编辑摘要
imported>=海豚=
无编辑摘要
imported>=海豚=
无编辑摘要
第16行: 第16行:
    const upperFirstCase = (s) => /^[a-z]/.test(s) ? s.substring(0, 1).toUpperCase() + s.substring(1) : s;
    const upperFirstCase = (s) => /^[a-z]/.test(s) ? s.substring(0, 1).toUpperCase() + s.substring(1) : s;
    const api = new mw.Api();
    const api = new mw.Api();
    const p = $('<fieldset><legend>用户贡献分布</legend><p id="queryContributions">加载用户贡献分布(对编辑数量较多的用户慎重使用!)<button id="confirmQueryContributions"> √ </button></fieldset>').insertAfter("#mw-content-text > form").find("#queryContributions");
    const p = $('<fieldset><legend>用户贡献分布</legend><p id="queryContributions">加载用户贡献分布(对编辑数量较多的用户慎重使用!)<button id="confirmQueryContributions"> √ 开始加载</button></fieldset>').insertAfter("#mw-content-text > form").find("#queryContributions");
    p.find("#confirmQueryContributions").on("click", async () => {
    p.find("#confirmQueryContributions").on("click", async () => {
      p.text("加载中……");
      p.text("加载中……");
匿名用户

导航菜单