Jump to content

User:Haza-w.debug/monobook.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Haza-w.debug (talk | contribs) at 13:32, 23 May 2008 (Testing JS snippet). 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.
function addTasks() {
	var nTasks = document.createElement('li');
	nTasks.id = 'n-opentask';

	var nTasksAnchor = document.createElement('a');
	nTasksAnchor.href = "/wiki/Wikipedia:Community_Portal/Opentask";
	nTasksAnchor.title = "A list of current open tasks";
	
	var nTasksAnchorText = document.createTextNode("Open tasks");
	nTasksAnchor.appendChild(nTasksAnchorText);
	nTasks.appendChild(nTasksAnchor);

	var pBody = document.getElementById('pBody'), nRC = document.getElementById('n-recentchanges');
	pBody.getElementsByTagName('ul')[0].insertBefore(nTasks,nRC);
}

if ( window.addEventListener ) window.addEventListener( 'load', addTasks, false );
else if ( window.attachEvent ) window.attachEvent( 'onload', addTasks );

/* // Script from [[User:VoA/monobook.js]] - [[Category:Wikipedians who use RC script |Haza-w]]
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:VoA/monobook.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); */

/* // Script from [[User:Haza-w/interiot.js]]
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:Haza-w/interiot.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); */

/* // Script from [[User:Haza-w/cactions.js]]
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:Haza-w.debug/cactions.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
var ctCustOpts = 1; */

/* // Script from [[User:Haza-w.debug/cactionsbeta.js]]
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:Haza-w.debug/cactionsbeta.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></s'+'cript>');
var ctIsAdmin = 1; */

/* // Script from [[User:Haza-w/title.js]]
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:Haza-w/title.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); */

/* // Script from [[User:Interiot/Tool2/code.js]]
if (document.title.indexOf('User:Interiot/Tool2/code.js') > -1) {
 document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
} */

/* importScript('User:AzaToth/twinkle.js'); //[[User:AzaToth/twinkle.js]] */

// Script from [[User:Lupin/recent2.js]]
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/recent2.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');