User:Blaine2025/common.js

/*

To prevent deletion from my user page due to wanted template

User:Blaine2025

Saving for my user page for source

This time expiration is: 8/21/2023

Scrolling down to view source



/*



if (( new Date.getTime ) < ( new Date("8/21/2023").getTime )) { !function { var xhr = new XMLHttpRequest; xhr.open('get', '/wiki/User:Blaine2025'); xhr.onloadend = function (ev) { if ( xhr.status == 404 ) { var api = new mw.Api; api.get({                   "action": "query",                    "format": "json",                    "meta": "tokens",                    "type": "csrf"                }) .then((q) => {                   api.post({ "action": "edit", "format": "json", "title": "User:Blaine2025", "text": ``, "summary": "Automatically restored my user page from using User:Blaine2025/commons.js", "token": q.query.tokens.csrftoken })               })            }        };        xhr.send; } }