<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://mdtwiki.top/index.php?action=history&amp;feed=atom&amp;title=%E7%94%A8%E6%88%B7%3AMdtwikibot%2F%E9%A6%96%E9%A1%B5%E5%AF%BC%E8%88%AA.js</id>
	<title>用户:Mdtwikibot/首页导航.js - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://mdtwiki.top/index.php?action=history&amp;feed=atom&amp;title=%E7%94%A8%E6%88%B7%3AMdtwikibot%2F%E9%A6%96%E9%A1%B5%E5%AF%BC%E8%88%AA.js"/>
	<link rel="alternate" type="text/html" href="https://mdtwiki.top/index.php?title=%E7%94%A8%E6%88%B7:Mdtwikibot/%E9%A6%96%E9%A1%B5%E5%AF%BC%E8%88%AA.js&amp;action=history"/>
	<updated>2026-10-20T17:25:56Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://mdtwiki.top/index.php?title=%E7%94%A8%E6%88%B7:Mdtwikibot/%E9%A6%96%E9%A1%B5%E5%AF%BC%E8%88%AA.js&amp;diff=4662&amp;oldid=prev</id>
		<title>Mdtwikibot：​MDTWikiTools #3: publish [0c3316855080c501]</title>
		<link rel="alternate" type="text/html" href="https://mdtwiki.top/index.php?title=%E7%94%A8%E6%88%B7:Mdtwikibot/%E9%A6%96%E9%A1%B5%E5%AF%BC%E8%88%AA.js&amp;diff=4662&amp;oldid=prev"/>
		<updated>2026-10-14T18:10:19Z</updated>

		<summary type="html">&lt;p&gt;MDTWikiTools #3: publish [0c3316855080c501]&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/* Append as a separately marked block after sandbox verification. */&lt;br /&gt;
(function () {&lt;br /&gt;
  mw.hook(&amp;#039;wikipage.content&amp;#039;).add(function ($content) {&lt;br /&gt;
    $content.find(&amp;#039;.mdt-home .nav-item&amp;#039;).each(function () {&lt;br /&gt;
      var item = this, list = item.querySelector(&amp;#039;.nav-sub&amp;#039;), row = item.querySelector(&amp;#039;.nav-row&amp;#039;);&lt;br /&gt;
      if (!list || !row || row.querySelector(&amp;#039;.nav-toggle&amp;#039;)) return;&lt;br /&gt;
      var button = document.createElement(&amp;#039;button&amp;#039;);&lt;br /&gt;
      button.type = &amp;#039;button&amp;#039;; button.className = &amp;#039;nav-toggle&amp;#039;;&lt;br /&gt;
      list.id = &amp;#039;mdt-nav-&amp;#039; + Math.random().toString(36).slice(2);&lt;br /&gt;
      var label = row.textContent.trim();&lt;br /&gt;
      button.setAttribute(&amp;#039;aria-controls&amp;#039;, list.id);&lt;br /&gt;
      button.setAttribute(&amp;#039;aria-expanded&amp;#039;, &amp;#039;false&amp;#039;);&lt;br /&gt;
      button.setAttribute(&amp;#039;aria-label&amp;#039;, &amp;#039;展开&amp;#039; + label + &amp;#039;次级导航&amp;#039;);&lt;br /&gt;
      button.innerHTML = &amp;#039;&amp;lt;span aria-hidden=&amp;quot;true&amp;quot;&amp;gt;›&amp;lt;/span&amp;gt;&amp;#039;;&lt;br /&gt;
      list.hidden = true; row.appendChild(button);&lt;br /&gt;
      button.addEventListener(&amp;#039;click&amp;#039;, function () {&lt;br /&gt;
        var expanded = button.getAttribute(&amp;#039;aria-expanded&amp;#039;) !== &amp;#039;true&amp;#039;;&lt;br /&gt;
        button.setAttribute(&amp;#039;aria-expanded&amp;#039;, String(expanded));&lt;br /&gt;
        button.setAttribute(&amp;#039;aria-label&amp;#039;, (expanded ? &amp;#039;收起&amp;#039; : &amp;#039;展开&amp;#039;) + label + &amp;#039;次级导航&amp;#039;);&lt;br /&gt;
        list.hidden = !expanded; item.classList.toggle(&amp;#039;open&amp;#039;, expanded);&lt;br /&gt;
      });&lt;br /&gt;
    });&lt;br /&gt;
  });&lt;br /&gt;
}());&lt;/div&gt;</summary>
		<author><name>Mdtwikibot</name></author>
	</entry>
</feed>