Widget:Contribution:修订间差异
imported>=海豚= 无编辑摘要 |
imported>=海豚= 无编辑摘要 |
||
| 第1行: | 第1行: | ||
<script> | <script> | ||
// <pre> | // <pre> | ||
"use strict"; | "use strict"; | ||
$(() => (async () => { | $(() => (async () => { | ||
const target = (document.querySelector('[name="target"]') || {}).value; | const target = (document.querySelector('[name="target"]') || {}).value; | ||
if (typeof target !== "string" || target.length === 0) { | if (typeof target !== "string" || target.length === 0) { | ||
| 第15行: | 第11行: | ||
return; | return; | ||
} | } | ||
mw.loader.load(mw.config.get("wgServer") + mw.config.get("wgScriptPath")); | |||
mw.loader.using("jquery.tablesorter"); | mw.loader.using("jquery.tablesorter"); | ||
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; | ||
| 第124行: | 第121行: | ||
})()); | })()); | ||
// </pre> | // </pre> | ||
</script> | </script> | ||
<style> | <style> | ||