User:Mets501/monobook.js
From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Firefox/Mozilla/Safari: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Internet Explorer: press Ctrl-F5, Opera/Konqueror: press F5.
//<pre> if (navigator.appName != "Microsoft Internet Explorer") { importScript('User:AzaToth/morebits.js'); importScript('User:AzaToth/twinklefluff.js'); importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu'); importStylesheet('Wikipedia:WikiProject User scripts/Scripts/Add LI menu/css'); importScript('User:AzaToth/twinklewarn.js'); importScript('User:AzaToth/twinklearv.js'); importScript('User:AzaToth/twinklespeedy.js'); importScript('User:AzaToth/twinklediff.js'); // Begin delete link code function addDeleteLink() { var targetSpan = document.getElementById('specialDeleteTarget'); var linkSpan = document.getElementById('specialDeleteLink'); if (targetSpan == null || linkSpan == null) return; var targetLink = targetSpan.getElementsByTagName("A")[0]; if (targetLink == null) return; var targetTitle = targetLink.childNodes[0].data; var deleteHref = "http://en.wikipedia.org/w/index.php?action=delete&title=" + escape(targetTitle); var deleteSpan = null; with (easyDom) { deleteSpan = span({ "class": "plainlinks" }, " (", a({ "href": deleteHref, "class": "external text" }, "delete"), ")"); } linkSpan.appendChild(deleteSpan); } addOnloadHook(addDeleteLink); // End delete link code document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Mike Dillon/Scripts/easydom.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); // [[User:Lupin/popups.js]] document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); popupFixDabs=true; document.write('<script src="' + 'http://de.wikipedia.org/w/index.php?title=Benutzer:ASM/quickedit.js' + '&action=raw&ctype=text/javascript"></script>'); var qeEnabled = true; // Script aktivieren? var qeEnableSection0 = true; // QuickEdit-Link für Abschnitt 0 (Einleitung)? var qeShowErrors = false; // Fehler anzeigen? (im Normalfall besser nicht (false)) var qeEnableAccessKeys = true; // Access keys aktivieren? var qeTextboxHeight = 25; // Höhe des Textfelds //Interiot's javascript edit counter 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>'); } // Add a "Kate" link to your monobook "personal menu" list at the very // top of the page. // // Indicate where you would like "Kate" to appear: // pt-userpage, pt-mytalk, pt-preferences, // pt-watchlist, pt-mycontris, pt-logout // gsKateInsertBefore = 'pt-mycontris'; // leave blank to append after "logout" // function KateLink() { var user = document.getElementById( 'pt-userpage' ).firstChild.firstChild.data; var li = document.createElement( 'li' ); li.id = 'pt-kate'; var a = document.createElement( 'a' ); a.appendChild( document.createTextNode( "MetsBot's contributions" ) ); // eh, the css makes the text lowercase a.href = 'http://en.wikipedia.org/wiki/Special:Contributions/MetsBot'; li.appendChild( a ); if ( ! gsKateInsertBefore ) // append to end (right) of list { document.getElementById( 'pt-logout' ).parentNode.appendChild( li ); } else { var before = document.getElementById( gsKateInsertBefore ); before.appendChild( li, before ); } } if ( window.addEventListener ) window.addEventListener( 'load', KateLink, false ); else if ( window.attachEvent ) window.attachEvent ( 'onload', KateLink ); function tnaddlilink(url, name) { var na = document.createElement('a'); na.setAttribute('href', url); var txt = document.createTextNode(name); na.appendChild(txt); var li = document.createElement('li'); li.appendChild(na); return li; } // My own edit top function addlilink(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]; } } // re-render the title and accesskeys from existing code in wikibits.js akeytt(); return li; }; function addTab(url, name, id, title, key){ var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0]; return addlilink(tabs, url, name, id, title, key) }; var fulltitle = document.title.split(" - Wikipedia, the free encyclopedia"); var articletitle = fulltitle[0]; if (document.title.indexOf("Editing ") == -1) { addOnloadHook( function() { addTab("http://en.wikipedia.org/w/index.php?title="+articletitle+"&action=edit§ion=0", "edit top", "ca-edittop", "Edit top", ""); } ); } // Admin tools document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Mets501/admin monobook.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); }