• 欢迎来到小可 · Wiki,人人可编辑的,多平台聊天机器人“小可”的官方文档资源。
  • 小可很可爱,请给我们打钱
  • 原 MkDocs 已迁入本站。若发现 404 属正常现象,请点击左上角搜索您想要的模块。

MediaWiki:Common.js

MediaWiki系统消息页面
Dianliang233讨论 | 贡献2021年6月6日 (日) 07:45的版本

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:Ctrl-F5
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
document.getElementById('skin-citizen-search-trigger').addEventListener('click', function() {
            var event = new Event('input',{
                bubbles: !0,
                composed: !0
            })
              , checkbox = document.getElementById('search-checkbox');
            checkbox.checked = !0;
            checkbox.dispatchEvent(event);
        });

fetch('https://api.github.com/repos/Teahouse-Studios/bot/commits').then(async (res) => {
    const response = await res.json()
    const hash = response[0].sha
    const shortHash = hash.slice(0, 6)
    $('.commit-hash:not(commit-hash-short)').text(hash)
    $('.commit-hash.commit-hash-short').text(shortHash)
}).catch(() => {
	$('.commit-hash').text('???')
})
Cookie帮助我们提供我们的服务。通过使用我们的服务,您同意我们使用cookie。