Jump to content

User:OlEnglish/vector.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by OlEnglish (talk | contribs) at 21:42, 2 January 2017. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript('User:Ale_jrb/Scripts/csdhelper.js');  //[[User:Ale_jrb/Scripts]]
importScript('User:NuclearWarfare/Mark-blocked script.js');
importScript('User:js/watchlist.js');
importScript('User:Gary King/show upload deletion logs.js');
importScript('User:Animum/easyblock.js');
importScript('User:Mr.Z-man/closeAFD.js');//Close AFD
importScript("User:PleaseStand/userinfo.js");

// importScript('User:UncleDouggie/smart watchlist.js'); //
// importScript('User:Kaldari/wikilove.js'); //
// importScript('User:Ale_jrb/Scripts/userhist.js'); //
// importScript('User:Tim Song/afchelper4.js'); //
// importScript('User:King of Hearts/closexfd.js); //
// importScript('User:Lupin/recent2.js'); //
// importScript('User:Manishearth/orphantabs.js'); //
// importScript('User:Ale_jrb/Scripts/statusCheck.js'); //
// importScript('User:Ale_jrb/Scripts/igloo.js');  //
// importScript('User:M/reword.js'); //

// importScriptURI('http://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Haza-w/cactions.js'); //

// window.hotcat_use_category_links = true; //



// Random pages links in the menu bar //
randomPages = {
addToolboxLink: function(url, name, id) {
	var tb = document.getElementById('p-navigation').getElementsByTagName('ul')[0];
	randomPages.addlilink(tb, url, name, id);
}, 
addlilink: function(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;
},
}
addOnloadHook(function() {
		randomPages.addToolboxLink("http://en.wikipedia.org/wiki/Special:Random/User", 'Random userpage', 'random-userpage');
	}
);



// Link to admin dashboard //
//function addDash() {
//loLogoutNode = document.getElementById("pt-logout");
//loDashNode = addPortletLink( "p-personal"
//        , wgServer + wgScriptPath + "/index.php?title=User:" + wgUserName + "/Dashboard"
//        , "My dashboard"
//        , "pt-admindash"
//        , "Link to dashboard"
//        , "d"
//        , loLogoutNode );
//}
//addOnloadHook(addDash);