「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("加载中……");
匿名使用者

導覽選單