Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
MediaWiki:Common.js
(view source)
Revision as of 03:59, 16 January 2020
867 bytes removed
,
03:59, 16 January 2020
no edit summary
Line 212:
Line 212:
}
}
if (subpages.find("a")[0]) { $("#contentSub").prepend(subpages); }
if (subpages.find("a")[0]) { $("#contentSub").prepend(subpages); }
−
}
−
//重复文件列表函数
−
function duplicatedFileList() {
−
if (window.location.href.indexOf("title") === -1) { window.location.replace("http://zh.moegirl.org/index.php?title=Special:ListDuplicatedFiles&limit=500&offset=0"); }
−
$("#mw-content-text .mw-spcontent ol").attr("id",
−
"picOl");
−
$("#picOl").before('<p id="picOlTitle">图片列表:</p>').after('<p id="MP3OlTitle">MP3列表:</p><ol start="1" id="MP3Ol"></ol>');
−
$("#picOlTitle, #MP3OlTitle").hide();
−
$("#picOl").find("[href$='.mp3'], [href$='.ogg']").parent().appendTo("#MP3Ol");
−
if ($("#picOl").find("li").length) { $("#picOlTitle").show(); }
−
if ($("#MP3Ol").find("li").length) { $("#MP3OlTitle").show(); }
−
$(".mw-spcontent > p:nth-child(1), .mw-spcontent > p:nth-child(2), .mw-spcontent > p:nth-child(7)").hide();
}
}
/* 函数执行体 */
/* 函数执行体 */
LovelyA72
Bureaucrats
,
Interface administrators
,
Administrators
90
edits
Toggle sidebar
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version
What's Up With Your MCU?
Navigation menu
Personal tools
Log in
Namespaces
Message
Discussion
Variants
Views
Read
View source
View history
More
Search