Jump to content

User:InvalidOS/vector.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// Add a second sandbox tab to the top menu, and a link to [[Special:RecentChanges]]
if (document.getElementById('pt-sandbox'))
{
	// var inner='<a href="/wiki/User:InvalidOS/sandbox1" title="Sandbox 1">Sandbox 1</a>';
	var append='<li id="pt-recent", title="Special:RecentChanges"><a href="/wiki/Special:RecentChanges?damaging=likelybad%3Bverylikelybad&hidebots=1&hideWikibase=1&limit=50&days=7&urlversion=2">Recent Changes</a></li>';
	var el = document.getElementById('pt-sandbox');
	// el.innerHTML = inner;
	el.insertAdjacentHTML("afterend",append);
}

importScript('User:InvalidOS/unicodeRedirect.js'); // Backlink: [[User:InvalidOS/unicodeRedirect.js]]
importScript('User:SD0001/DYK-helper.js'); // [[User:SD0001/DYK-helper.js]]
//importScript('User:InvalidOS/ShowComments.js'); // Backlink: [[User:InvalidOS/ShowComments.js]]