MediaWiki:Gadget-commentaddon.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 3: | Line 3: | ||
faqAddon.html('<ul><li>Comments that do not abide by our new <a href="'+document.location.origin+'/wiki/Guideline_Comments">Comments Guidelines</a> will be deleted. Also consult our <a href="'+document.location.origin+'/wiki/Frequently Asked Questions">FAQ</a>.</li><li>For direct communication and assistance, please visit our <a href="https://discord.gg/GbyJQBp" class="external text" rel="nofollow">Discord Server</a>.</li></ul>'); | faqAddon.html('<ul><li>Comments that do not abide by our new <a href="'+document.location.origin+'/wiki/Guideline_Comments">Comments Guidelines</a> will be deleted. Also consult our <a href="'+document.location.origin+'/wiki/Frequently Asked Questions">FAQ</a>.</li><li>For direct communication and assistance, please visit our <a href="https://discord.gg/GbyJQBp" class="external text" rel="nofollow">Discord Server</a>.</li></ul>'); | ||
faqAddon.addClass('comments-guideline'); | faqAddon.addClass('comments-guideline'); | ||
$('#flowthread .comment-replybox'). | $('#flowthread .comment-replybox').before(faqAddon); | ||
}); | }); |
Revision as of 12:50, 17 August 2024
$('#flowthread .comment-replybox').ready(function() {
var faqAddon = $('<div></div>');
faqAddon.html('<ul><li>Comments that do not abide by our new <a href="'+document.location.origin+'/wiki/Guideline_Comments">Comments Guidelines</a> will be deleted. Also consult our <a href="'+document.location.origin+'/wiki/Frequently Asked Questions">FAQ</a>.</li><li>For direct communication and assistance, please visit our <a href="https://discord.gg/GbyJQBp" class="external text" rel="nofollow">Discord Server</a>.</li></ul>');
faqAddon.addClass('comments-guideline');
$('#flowthread .comment-replybox').before(faqAddon);
});