MediaWiki:Gadget-ShortURL.js:修订间差异
删除的内容 添加的内容
匿名可复制短链接:旧代码注释保留,新增匿名兼容 |
prependTo → appendTo:使 ShortURL 图标始终排在 indicator 最右侧 |
||
| (未显示同一用户的1个中间版本) | |||
第257行:
// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
new mw.widgets.CopyTextLayout({
label:
title:
align: "top",
copyText: "https://".concat(domain).concat(link)
第311行:
id: "mw-indicator-shortURL"
}, headerLink));
$headerElement.
}
// 【原】const fullLink = wgUserName ? "https://".concat(domains[0]).concat(link) : "https://".concat(location.host).concat(permaLink);
| |||