Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
User:Dragonjet/scripts/CloseThread.js
(view source)
Revision as of 11:03, 8 January 2015
No change in size
,
9 years ago
fix 0.4
Line 1:
Line 1:
(function($, ArticleComments){
(function($, ArticleComments){
"use strict";
"use strict";
−
console.log("Close Thread v0.
3
");
+
console.log("Close Thread v0.
4
");
function ExecCloseThreads(){
function ExecCloseThreads(){
−
$(
ClosedThreads
).each(function(
index, comment_id
){
+
$(
$(".wikiCloseCommentThread")
).each(function(){
−
console.log("Closing: "+
comment_id
);
+
console.log("Closing: "+
this.closest(".comment" ).attr("id")
);
−
$(".article-comm-reply",
$(".wikiCloseCommentThread")
.closest(".comment" )).hide();
+
$(".article-comm-reply",
this
.closest(".comment" )).hide();
});
});
}
}
Dragonjet
15
edits