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 07:49, 16 August 2011 (Comment). 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:Kaldari/wikilove.js');
importScript('User:CBM/quickpreview.js');
importScript('User:js/watchlist.js');
importScript('User:Gary King/show upload deletion logs.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'); //



// 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:RandomRedirect", 'Random redirect', 'random-redirect');
		randomPages.addToolboxLink("http://en.wikipedia.org/wiki/Special:Random/Talk", 'Random talk', 'random-talk');
		randomPages.addToolboxLink("http://en.wikipedia.org/wiki/Special:Random/Wikipedia", 'Random wikipedia', 'random-wikipedia');
		randomPages.addToolboxLink("http://en.wikipedia.org/wiki/Special:Random/File", 'Random file', 'random-file');
		randomPages.addToolboxLink("http://en.wikipedia.org/wiki/Special:Random/User", 'Random user', 'random-user');
	}
);



// 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);