Loading AI tools
来自维基百科,自由的百科全书
(function() {
'use strict';
if(location.pathname!="/wiki/%E7%B6%9C%E8%97%9D%E7%8E%A9%E5%BE%88%E5%A4%A7")
return;
$(".NavHead").each(function(){
let head = $(this).text();
let m= head.match(/回\s*(\d+)(\s*-\s*(\d+))/);
if(!m)
return;
let startEpisode= m[1];
let endEpisode;
if(m.length==4)
endEpisode=m[3];
else
endEpisode=startEpisode;
let contentList=$(".contentList");
let episodeNumbers= $.merge(contentList.find("td[rowspan=2]:first-child +td"), contentList.find("td:first-child:not([rowspan])"));
episodeNumbers=episodeNumbers.toArray();
let episodeTd= episodeNumbers.find(element=>element.innerText.trim()===startEpisode);
let $yellowTeamTd = $(episodeTd).next().next();
let yellowMembers= $yellowTeamTd.text().trim();
let $blackTeamTd = $yellowTeamTd.next();
let blackMembers= $blackTeamTd.text().trim();
let $gameMastersTd = $blackTeamTd.next();
let gameMasters= $gameMastersTd.text().trim();
let $descriptionArea= $(this).next().find("tr:nth-child(2) td");
let newContent=
`<p>关主 ${gameMasters}</p>
<p>黄队成员 ${yellowMembers}</p>
<p>黑队成员 ${blackMembers}</p>`;
let html = $descriptionArea.html() + newContent;
$descriptionArea.html(html);
});
})();
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.