User:Pg 6475/vector.js

importScript('User:AzaToth/twinkle.js'); importScript('Wikipedia:WikiProject User scripts/Scripts/Watchlist since'); importScript('User:Js/ajaxPreview.js'); // user:js/ajaxPreview importScript('Wikipedia:AutoEd/complete.js'); importScript('User:AzaToth/morebits.js');

//Test Script

function addEditCounter{ mw.util.addPortletLink("p-personal","https://tools.wmflabs.org/supercount/index.php?user=Pg+6475&project=en.wikipedia" ,"Counter","pt-mycounter","Edit Counter", "", document.getElementById('pt-logout')); }

addOnloadHook(addEditCounter);

var sidebarSwitch;

function sidebarHide { document.getElementById("mw-panel").style.visibility = "hidden"; document.getElementById("mw-head-base").style.marginLeft = "0"; document.getElementById("content").style.marginLeft = "0"; document.getElementById("left-navigation").style.left = "0"; document.getElementById("footer").style.marginLeft = "0"; if(typeof sidebarSwitch == "object") { sidebarSwitch.parentNode.removeChild(sidebarSwitch); }	sidebarSwitch = mw.util.addPortletLink("p-cactions", "javascript:sidebarShow", "Show sidebar", "ca-sidebar", "Show the navigation links", "a"); }

function sidebarShow { document.getElementById("mw-panel").style.visibility = ""; document.getElementById("mw-head-base").style.marginLeft = ""; document.getElementById("content").style.marginLeft = ""; document.getElementById("left-navigation").style.left = ""; document.getElementById("footer").style.marginLeft = ""; if(typeof sidebarSwitch == "object") { sidebarSwitch.parentNode.removeChild(sidebarSwitch); }	sidebarSwitch = mw.util.addPortletLink("p-cactions", "javascript:sidebarHide", "Hide sidebar", "ca-sidebar", "Hide the navigation links", "a"); }

// Only activate on Vector skin if(skin == "vector") { addOnloadHook(function {		// Change this if you want to show the sidebar by default		sidebarHide;	}); }

mw.loader.load( '//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400' );

importScript('User:Cameltrader/Advisor.js');

function addUserPageLink{ mw.util.addPortletLink("p-cactions", "https://en.wikipedia.org/wiki/User:"+mw.config.get('wgUserName')+"", "GO2UP", "ca-userlink", "Go to your User Page", ""); }

addOnloadHook(addUserPageLink);

function addWatchlistLink{ mw.util.addPortletLink("p-cactions", "https://en.wikipedia.org/wiki/Special:Watchlist", "Watchlist", "ca-watchlink", "View the pages you watch", "w"); }

addOnloadHook(addWatchlistLink);

function addUploadLink{ mw.util.addPortletLink("p-personal", "https://en.wikipedia.org/wiki/Special:Upload", "Upload", "pt-uplink", "Upload a file", "", document.getElementById('pt-logout')); }

addOnloadHook(addUploadLink);

function addFGLink{ mw.util.addPortletLink("p-cactions", "https://en.wikipedia.org/wiki/User:"+mw.config.get('wgUserName')+"/FG", "FG", "ca-userlink", "U dont say?", ""); }

addOnloadHook(addFGLink);