User:Lightmouse/monobook.js/script.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 31:
if (wgCanonicalSpecialPageName && wgCanonicalSpecialPageName == 'Watchlist')
addOnloadHook(function () {
var lnk = document.createElement('a');
var text = (window.wgAjaxWatch ? wgAjaxWatch.unwatchMsg : 'Unwatch') + '…';
lnk.appendChild(document.createTextNode(text));
lnk.href = 'javascript:importScript("ajaxUnwatch")';
var frm = document.getElementsByTagName('form')[0];
frm.parentNode.insertBefore(document.createTextNode(' | '), frm);
frm.parentNode.insertBefore(lnk, frm);
})
 
Line 108:
/* Do some things when the page loads */
 
//addOnloadHook(function () {
//
 
// /* Adds some links to my ''personal tools'' section ("My monobook.js", "My monobook.css", "My sandbox") */
//
 
// addLink('p-personal', '/wiki/User:Omegatron/monobook.js', 'My monobook.js', 'pt-monobookjs', 'monobook.js is used for storing user javascripts', '', 'pt-logout');
// addLink('p-personal', '/wiki/User:Omegatron/monobook.css', 'My monobook.css', 'pt-monobookcss', 'monobook.css is used for storing user CSS styles', '', 'pt-logout');
// addLink('p-personal', '/wiki/User:Omegatron/Sandbox', 'My sandbox', 'pt-sandbox', 'My sandbox is used for testing things', '', 'pt-logout');
// addLink('p-personal', '/w/index.php?title=Special%3AAllpages&from=Omegatron&namespace=2', 'My subpages', 'pt-subpages', 'Subpages of my userspace', '', 'pt-logout');
 
/* Shorten "edit this page" to just "edit" */
// if(document.getElementById('ca-edit')) {
// document.getElementById('ca-edit').firstChild.innerHTML = 'Edit';
// }
 
});