User:Oosoom/vector.js

// 2feb09 move left panel to bottom of page // commented out 19dec2011 importScript('user:js/bottomSidebar.js') //user:js/bottomSidebar // function getUserSpaceWikiLink(page, name) { return getWikiLink('User:'+wgUserName+'/'+page, (name?name:page)); } function getWikiLink(page, name) { return ''+(name?name:page)+''; } 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')[0] )) 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. &tilde;&tilde;&tilde;&tilde;&cr;&lf;== Licensing ==&cr;&lf;'; // 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 Image copyright tags'; // 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.org/wiki/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 // User:TheDJ/ActualLivePreview.js //mw.loader.load('//en.wikipedia.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");