User:Gary/comment highlighter.js: Difference between revisions

Content deleted Content added
update
fix
 
(7 intermediate revisions by the same user not shown)
Line 135:
 
static linkLinksToUsername(username, link) {
if (link.attr('href') && link.attr('href').indexOf(username) > -1 && link.attr('href').indexOf(username) === (link.attr('href').length - username.length)) {
return true;
} else {
Line 152:
// This script depends on "Comments in Local Time", so it should run after that.
runCHScript = function() {
if (window.mw.config.get('wgAction') === 'view' && (typeof isDiscussionPage !== "undefined" && isDiscussionPage !== null) && isDiscussionPage) {
return $setTimeout(window).on('load', function() {
if (window.mw.config.get('wgAction') === 'view' && (typeof isDiscussionPage !== "undefined" && isDiscussionPage !== null) && isDiscussionPage) {
return setTimeout(functionCommentHighlighter.init() {;
}, 0);
return CommentHighlighter.init();
}, 0);
}
});
};