User:Cacycle/monobook.js
From Wikipedia, the free encyclopedia
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 whether the code is safe, you can ask at the appropriate village pump.
Note: After saving, you have to bypass your browser's cache to see the changes. In Internet Explorer and Firefox, hold down the Ctrl key and click the Refresh or Reload button. Opera users have to clear their caches through Tools→Preferences, see the instructions for Opera. Konqueror and Safari users can just click the Reload button.
/* <pre></nowiki> */ var wikEdButtonKey = { 46: ['a', 65] // shift-alt-a: replace all button } //loadScript("User:Lupin/recent2.js"); //loadScript("User:Cacycle/recent2dev.js"); /* importScript('User:AzaToth/morebits.js'); importScript('User:AzaToth/twinklefluff.js'); importScript('User:AzaToth/twinklewarn.js'); importScript('User:AzaToth/twinklearv.js'); importScript('User:AzaToth/twinklespeedy.js'); importScript('User:AzaToth/twinklediff.js'); importScript('User:AzaToth/twinkleprotect.js'); importScript('User:AzaToth/twinkleprod.js'); importScript('User:AzaToth/twinklexfd.js'); importScript('User:AzaToth/salt.js'); */ /* // define custom buttons (id, class, popup title, image src, width, height, alt text, onClick and parameters) var wikEdButton = []; wikEdButton[100] = ['wikEdDiv', 'wikEdButton', 'Make the selection a html DIV element', 'http://upload.wikimedia.org/wikipedia/commons/6/67/WikEd_logo.png', '16', '16', 'DIV', 'javascript:WikEdEditButton(this, this.id, null, TestHandler);' ]; wikEdButton[101] = ['wikEdTest', 'wikEdButton', 'This is a test button', 'http://upload.wikimedia.org/wikipedia/commons/0/07/WikEd_disabled.png', '16', '16', 'Test', 'javascript:WikEdEditButton(this, this.id, null, TestHandler);' ]; // define custom button bars (id outer, class outer, id inner, class inner, height, grip title, button numbers) var wikEdButtonBar = []; wikEdButtonBar['custom1'] = ['wikEdButtonBarCustom1', 'wikEdButtonBarCustom1', 'wikEdButtonsCustom1', 'wikEdButtonsCustom1', 44, 'My custom buttons', [ 100, 'br', 101] ]; wikEdButtonBar['custom2'] = ['wikEdButtonBarCustom2', 'wikEdButtonBarCustom2', 'wikEdButtonsCustom2', 'wikEdButtonsCustom2', 44, 'My custom buttons', [ 100, 'br', 101] ]; // define the function which is called upon clicking the custom button function TestHandler(obj) { window.location.reload(true); return; } */ // var wikEdUseWikEdPreset = true; // var wikEdShowSourceButton = true; // var wikEdLoadDiff = true; // var wikEdRegExTypoFix = true; // var wikEdUseAjaxPreview = false; // var wikEdShowUsingButton = true; // installation of the wikEd editing page extension //wikEdLoadRegExTypoFix = true; // install [[User:Cacycle/wikEd international]] English example translation document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd_international_en.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); /**/ /* // install [[User:Cacycle/wikEd]] editing page extension document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); */ /* // install [[User:Cacycle/wikEd]] editing page extension - DEV document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd_dev.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); */ /* // install [[User:Cacycle/watchlistSorter]] document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/watchlistSorter.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); */ // importScript('User:Cacycle/watchlistSorter.js'); /* // load Wikipedia script function loadScript(s) { document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=' + s + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); } */ // loads each tool after loading the page window.onload = function Main() { addLink('p-personal', '/wiki/User:Cacycle/tricks', 'tricks', 'pt-tricks', 'tricks', '', ''); addLink('p-personal', '/wiki/User:Cacycle/monobook.js', 'monobook.js', 'pt-monobookjs', 'monobook.js', '', ''); addLink('p-personal', '/wiki/User:Cacycle/wikEd', 'wikEd', 'pt-monobookjs', ' ', '', ''); addLink('p-personal', '/wiki/User_talk:Cacycle/wikEd', 'wikEd talk', 'pt-monobookjs', ' ', '', ''); addLink('p-personal', '/wiki/User:Cacycle/wikEd_help', 'wikEd help', 'pt-monobookjs', ' ', '', ''); addLink('p-personal', '/wiki/User:Cacycle/wikEd.js', 'wikEd.js', 'pt-monobookjs', ' ', '', ''); addLink('p-personal', '/wiki/User:Cacycle/wikEd_development', 'wikEd dev', 'pt-monobookjs', ' ', '', ''); addLink('p-personal', '/wiki/User_talk:Cacycle/wikEd_development', 'wikEd dev talk', 'pt-monobookjs', ' ', '', ''); addLink('p-personal', '/wiki/User:Cacycle/wikEd_dev.js', 'wikEd_dev.js', 'pt-monobookjs', ' ', '', ''); if (document.getElementById('ca-edit')) { document.getElementById('ca-edit').firstChild.innerHTML = 'edit'; } } // Live Preview [[User:Pilaf/livepreview.js]] wpUserName = 'Cacycle'; // User name to display in signatures wpShowImages = true; // Enable downloading and displaying of images /* // [[User:Lupin]]'s crazy navigation popups [[User:Lupin/popups.js]] // (http://en.wikipedia.org/wiki/Wikipedia:Tools#Navigation_popups) popupDelay = 0; popupHideDelay = 0.2; popupAdminLinks = true; popupFixRedirs = true; popupFixDabs = true; popupStructure = 'original' imagePopupsForImages=false; popupModifier='ctrl' ; loadScript('User:Lupin/popupsdev.js'); */ // a helper function to add extra navigation links, from [[User:Trilobite/Tools]] and [[Wikipedia:WikiProject User scripts/Scripts/Add LI link]] // winc('User:Cacycle/monobook.js/addlink.js'); // from [[User:Omegatron/monobook.js/addlink.js]] function addLink(where, url, name, id, title, key, after) { 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); var tabs = document.getElementById(where).getElementsByTagName('ul')[0]; if (after) { tabs.insertBefore(li,document.getElementById(after)); } else { 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; } /* </nowiki></pre> */

