• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
m
attempt fix event-based prepend
Line 1: Line 1:  
(function($, ArticleComments){
 
(function($, ArticleComments){
 
"use strict";
 
"use strict";
console.log("Comment Warning v0.4");
+
console.log("Comment Warning v0.5");
console.log(ArticleComments);
   
 
 
$(window).load(function(){
 
$(window).load(function(){
$(".kcCommentWarning").prependTo("#article-comments");
+
if(ArticleComments){
 +
var realFunc = ArticleComments.init;
 +
ArticleComments.init= function () {
 +
var result = realFunc.apply(this, arguments);
 +
$(".kcCommentWarning").prependTo("#article-comments");
 +
$(".kcCommentWarning").show();
 +
return result;
 +
};
 +
}
 
});
 
});
 
   
 
   
 
}(jQuery, window.ArticleComments));
 
}(jQuery, window.ArticleComments));
15

edits

Navigation menu