In this article we are going to explore all facets of
User:Writ Keeper/Scripts/oldSchoolThanks.js, from its origins to its impact today.
User:Writ Keeper/Scripts/oldSchoolThanks.js is a topic that has captured the attention and interest of many people over the years, and its relevance continues to be evident in different areas. Throughout the next few lines, we will carefully examine the most important aspects of
User:Writ Keeper/Scripts/oldSchoolThanks.js, its evolution over time and its presence in today's society. In addition, we will analyze its influence in various fields, offering a complete and detailed vision of
User:Writ Keeper/Scripts/oldSchoolThanks.js that will allow the reader to better understand its importance and meaning in the modern world.
$(document).ready(function()
{
$(".mw-thanks-thank-link").off("click");
$(".mw-thanks-thank-link").click(function()
{
if((typeof noThanksConfirm != "undefined" && noThanksConfirm) || confirm("Are you sure you want to thank the author of this edit?"))
{
var clickedThanksLink = this;
var postData = {rev : $(this).attr("data-revision-id"), token : mw.user.tokens.get( 'csrfToken' ), source : "script"};
$.post("/w/api.php?action=thank&format=json", postData, function(){
$(clickedThanksLink).replaceWith('<span class="mw-thanks-thanked">thanked</span>');
});
}
return false;
});
});