User:Albedo-ukr/monobook.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
The accompanying .css page for this skin can be added at User:Albedo-ukr/monobook.css. |
// Live Preview customization, <source lang=javascript>
// edit this to your own liking.
wpUserName = 'Albedo'; // User name to display in signatures
wpShowImages = true; // Enable downloading and displaying of images
wpLanguageCode = 'uk';
// Include Live Preview...
mw.loader.load('https://uk.wikipedia.org/w/index.php?title=User:Ilya/livepreview.js&action=raw&ctype=text/javascript');
// Now set everything up
window.onload = Main;
function Main()
{
LivePreviewInstall();
// You may include here other "extensions"
}
/* This is to keep track of who is using the Live Preview: [[:en:User:Pilaf/livepreview.js]] */
function addlilink(tabs, url, name, id, title, key)
{
var na = document.createElement('a');
na.href = url;
na.appendChild(document.createTextNode(name));
var li = document.createElement('li');
if(id) li.id = id;
li.appendChild(na);
tabs.appendChild(li);
if(id)
{
if(key && title)
{
ta[id] = [key, title];
}
else if(key)
{
ta[id] = [key, ''];
}
else if(title)
{
ta[id] = ['', title];
}
}
akeytt();
return li;
}