// 2feb09 move left panel to bottom of page
// commented out 19dec2011 importScript('user:js/bottomSidebar.js') //]
//
function getUserSpaceWikiLink(page, name) { return getWikiLink('User:'+wgUserName+'/'+page, (name?name:page)); }
function getWikiLink(page, name) { return '<a href="'+wgArticlePath.replace(/\$1/, page)+'">'+(name?name:page)+'</a>'; }
function insertUserLink(id, page, name) {
var talklink = document.getElementById('pt-mytalk');
var newuserlink = document.createElement('LI');
newuserlink.id = 'pt-' + id;
newuserlink.innerHTML = getUserSpaceWikiLink(page, (name?name:page));
talklink.parentNode.insertBefore(newuserlink, talklink);
}
$(function () {
insertUserLink('mycss', 'vector.css', 'css');
insertUserLink('myjs', 'vector.js', 'js');
});
//----------------------------------------------------------------------------------------------------------------
/*
// addPurge - added 2feb09
$(function () {
var hist; var url;
if (!(hist = document.getElementById('ca-history') )) return;
if (!(url = hist.getElementsByTagName('a') )) return;
if (!(url = url.href )) return;
mw.util.addPortletLink('p-cactions', url.replace(/(action=)history(|$)/, '$1purge$2'),
'purge', 'ca-purge', 'Purge server cache for this page', '0');
});
*/
//
/*
function unverified() {
// Find the edit box
var txt = document.editform.wpTextbox1;
// The tag to be included is this text:
var tag = 'Photographed ------ by me. ˜˜˜˜&cr;&lf;== Licensing ==&cr;&lf;{{GFDL-self-no-disclaimers}}';
// If the edit box doesn't already have this tag...
if (txt.value.indexOf('Oosoox') == -1) {
// Append the tag
txt.value += tag;
txt.value += 'extra line';
// Add an edit summary
//NO------ document.editform.wpSummary.value = 'Needs a source and copyright tag — see ]';
// Press the Save page button
//NO------ document.editform.submit();
}
// If the tag was already there, turn the tab background red to indicate
// that the script is functioning properly, but that there is no action
// to do. This doesn't interrupt the user's work like an alert() would.
else {
document.getElementById('ca-unverified').firstChild.style.backgroundColor = "#ff4444";
document.getElementById('ca-unverified').style.backgroundColor = "#ff4444";
}
}
// Create a tab that calls this function when pressed
$(function () {
if(document.title.indexOf("Editing Image:") == 0) {
mw.util.addPortletLink('p-cactions', 'javascript:unverified()', 'tag', 'ca-unverified', 'Adds a tag to an unverified image', '', '');
}
});
*/
// 11May09 hilite Admins
importScript('User:Ais523/adminrights.js') //hilight AdminsRetrieved from "http://en.wikipedia.orghttps://dictious.com/en/User:Oosoom/monobook.js"Personal tools
// 28dec2011 for Vector only - toggle sidebar (adds option to MORE dropdown menu). Try again 5mar2015
importScript("User:PleaseStand/hide-vector-sidebar.js");
// 7june2012 try faded watchlist
importScript('User:Equazcion/ReverseMarked.js');
// 12june2015 live split screen preview in EDIT
// ]
//mw.loader.load('//en.wikipedia.orghttps://en.wiktionary.org/w/index.php?title=User:TheDJ/ActualLivePreview.js&action=raw&ctype=text/javascript');
importScript('User:TheDJ/ActualLivePreview.js');
// 12june2015
importScript("User:PleaseStand/userinfo.js");