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:'+mw.config.get('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); } addOnloadHook(function {        insertUserLink('Gallery', 'Gallery');        insertUserLink('New articles', 'New articles');        insertUserLink('refs', 'refs');        insertUserLink('links', 'links');        insertUserLink('sb', 'sb');        insertUserLink('sb1', 'sb1');        insertUserLink('sb2', 'sb2');        insertUserLink('sb3', 'sb3');        insertUserLink('sb4', 'sb4');        insertUserLink('sb5', 'sb5');        insertUserLink('sb6', 'sb6');        insertUserLink('sb7', 'sb7');        insertUserLink('sb8', 'sb8');        insertUserLink('sb9', 'sb9');        insertUserLink('sbs', 'sbs');        insertUserLink('sbt', 'sbt');        insertUserLink('mycss', 'vector.css', 'css');        insertUserLink('myjs', 'vector.js', 'js'); }); //-- // settings for WikiMiniAtlas (globe in coordinates) var wma_settings = { enabled: true } // /* // addPurge - added 2feb09 addOnloadHook(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 addOnloadHook(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");

// 11aug2015 /*importScript('User:Anomie/linkclassifier.js'); // Linkback: User:Anomie/linkclassifier.js importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: User:Anomie/linkclassifier.css

importScript( 'User:קיפודנחש/viewstats.js' ); // Backlink: User:קיפודנחש/viewstats.js // 9aug2016 /* importScript( 'User:Fred Gandt/responsiveHistoryCompare.js' ); // Backlink: User:Fred Gandt/responsiveHistoryCompare.js // 9aug2016