User:Daveydweeb/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.
If a message on your talk page led you here, please be wary of who left it. The code below could contain malicious content capable of compromising your account; if your account appears to be compromised, it will be blocked. If you are unsure of whether the code is safe, you can ask at the help desk.
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>'); // [[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>'); popupDelay = 1.0; popupHideDelay = 0.1; popupRedlinkRemoval = true; popupFixDabs = true; popupImages = false; simplePopups = true; popupFixRedirs = true; //ADDTAB HELPER FUNCTION function addTab(url, name, id, title, key){ var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0]; return addlilink(tabs, url, name, id, title, key) }; //ADDLILINK HELPER FUNCTION 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; } // // Script from [[User:ais523/editcount.js]] document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:ais523/editcount.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); // <nowiki>If you are editing a page, click the wikify button on your tab bar to add "{{Wikify-date|{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}" to the top, set "Marked for wikification." as the edit summary, mark it as a minor edit, and submit.</nowiki> function doQwikify() { document.editform.wpTextbox1.value = '{' + '{' + 'Wikify-date|' + '{' + '{' + 'subst:CURRENTMONTHNAME}} ' + '{' + '{' + 'subst:CURRENTYEAR}}}}\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = document.editform.wpSummary.value + ' Marked for wikification.'; document.editform.wpMinoredit.checked = true; document.editform.submit(); } function addQwikify() { addTab("javascript:doQwikify()", "wikify", "ca-wikify", "Mark for wikification", ""); akeytt(); } addOnloadHook(function() { if (document.title.indexOf("User:") != -1 || document.title.indexOf("Editing User talk:") != -1) { addOnloadHook(addWelcomeUser); addOnloadHook(addPRODWarning); addOnloadHook(addAFDNote); } if (document.title.indexOf("Editing ") != -1) { addOnloadHook(addQwikify); addOnloadHook(addCleanup); } if (document.title.indexOf("Editing Wikipedia:") != -1) { addOnloadHook(addCvgdeletion); } if (document.title.indexOf("Editing Talk:") != -1) { addOnloadHook(addCvgstub); } }); // by [[User:Raylu|raylu]] // // CleanupTab.js // // This script adds a "cleanup" tab to the top of article pages // when in edit mode. It is disabled for the User namespace. function doCleanup() { document.editform.wpTextbox1.value = '{' + '{' + 'Cleanup-date|' + '{' + '{' + 'subst:CURRENTMONTHNAME}} ' + '{' + '{' + 'subst:CURRENTYEAR}}}}\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = document.editform.wpSummary.value + ' Marked for cleanup. '; document.editform.wpMinoredit.checked = true; document.editform.submit(); } function addCleanup() { addTab("javascript:doCleanup()", "cleanup", "ca-cleanup", "Mark for cleanup", ""); akeytt(); } // From code by [[User:Raylu|raylu]] // // // This script adds a "CVG Deletion" tab to the top of article pages // when in edit mode. It is disabled for the User namespace. function doCvgdeletion() { document.editform.wpTextbox1.value = document.editform.wpTextbox1.value + '\n{' + '{' + 'subst' + ':' + 'CVG' + ' ' + 'deletion' + '}' + '}'; document.editform.wpSummary.value = document.editform.wpSummary.value + ' Now a CVG deletion.'; document.editform.wpMinoredit.checked = true; document.editform.submit(); } function addCvgdeletion() { addTab("javascript:doCvgdeletion()", "cvgdeletion", "ca-cvgdeletion", "CVG Deletion", ""); akeytt(); } // From code by [[User:Raylu|raylu]] // // // This script adds a "CVG Stub" tab to the top of article pages // when in edit mode. It is disabled for the User namespace. function doCvgstub() { document.editform.wpTextbox1.value = '{' + '{' + 'cvgproj' + '|' + 'class' + '=' + 'stub' + '}' + '}\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = '{' + '{' + 'cvgproj' + '}' + '}' + ': rated as stub-class.'; document.editform.wpMinoredit.checked = false; document.editform.submit(); } function addCvgstub() { addTab("javascript:doCvgstub()", "cvgstub", "ca-cvgstub", "CVG Stub", ""); akeytt(); } //Begin "welcome" script function doWelcomeUser() { document.editform.wpTextbox1.value = document.editform.wpTextbox1.value + '==' + 'Welcome to Wikipedia!' + '==\n\n' + '{' + '{' + 'subst:welcome' + '}' + '}' + ' -- {' + '{' + 'subst:User:Daveydweeb/sigforscripts' + '}}\n\n'; document.editform.wpSummary.value = document.editform.wpSummary.value + 'Welcome. '; document.editform.wpMinoredit.checked = false; } function addWelcomeUser() { addTab("javascript:doWelcomeUser()", "welcome", "welcomeuser", "Welcome", ""); akeytt(); } //Begin "afd-note" script function doAFDNote() { document.editform.wpTextbox1.value = document.editform.wpTextbox1.value + '{' + '{' + 'subst:AFDNote' + '|' + '}' + '}' + ' -- {' + '{' + 'subst:User:Daveydweeb/sigforscripts' + '}}\n\n'; document.editform.wpSummary.value = document.editform.wpSummary.value + 'AfD notice: ' + '[[_]]. '; document.editform.wpMinoredit.checked = false; } function addAFDNote() { addTab("javascript:doAFDNote()", "afdnote", "afdnote", "AFDNote", ""); akeytt(); } function doPRODWarning() { document.editform.wpTextbox1.value = document.editform.wpTextbox1.value + '{' + '{' + 'subst:PRODWarning' + '|' + '}' + '}' + ' -- {' + '{' + 'subst:User:Daveydweeb/sigforscripts' + '}}\n\n'; document.editform.wpSummary.value = document.editform.wpSummary.value + 'AfD notice: ' + '[[_]]. '; document.editform.wpMinoredit.checked = false; } function addPRODWarning() { addTab("javascript:doPRODWarning()", "prodwarning", "prodwarning", "PRODWarning", ""); akeytt(); } // Script from [[User:AndyZ/peerreviewer.js]] document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:AndyZ/peerreviewer.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');