Difference between revisions of "Common.js"

(Created page with "$(function() { $(".build-template-button").click(function(){ navigator.clipboard.writeText($(this).prev().text()); alert("Template code copied!"); }); });")
 
m (Protected "MediaWiki:Common.js" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(No difference)

Revision as of 15:49, 23 February 2022

$(function() {
	$(".build-template-button").click(function(){
		navigator.clipboard.writeText($(this).prev().text());
		alert("Template code copied!");
	});
});
Get MetaBattle Premium
Enjoy an ad-free experience & support the website, for less than $1 per month! Upgrade to Premium