User:Cactus.man/monobook.js

///////////////////////////////////////////////////////////////////////////////////////////////////////// // Blatantly stolen from many sources // Where would we all be without a bit of help along the way - just ask Jack // (http://en.wikipedia.org/wiki/Jack_Vettriano) = // - // All credits listed below or on the script page /////////////////////////////////////////////////////////////////////////////////////////////////////////

importScript('User:Quarl/util.js');              // Utility functions importScript('User:Quarl/wikipage.js');          // WikiPage class importScript('User:Quarl/wikiedit.js');          // WikiEditor importScript('User:Quarl/diff.js');              // WikiEditor importScript('User:Quarl/cookie.js');            // cookie helpers importScript('User:Quarl/shortcuts.js');         // Shortcuts class

importScript('User:Cactus.man/Scripts/PersonalToolbox.js'); // Personal toolbox importScript('User:Cactus.man/Scripts/ChangeTitles.js');    // New personal menu & tab titles importScript('User:Cactus.man/Scripts/EditTop.js');         // Add tab to edit lead section only importScript('User:Cactus.man/Scripts/Tabs.js');            // Additional tabs for editing pages importScript('User:Cactus.man/Scripts/MoreTabs.js');        // Additional tabs for user & project pages importScript('User:Cactus.man/Scripts/PurgeTab.js');        // Add a purge tab to pages importScript('User:Cactus.man/Scripts/DuplicateTabs.js');   // Duplicates top page tabs at the bottom importScript('User:Cactus.man/Scripts/FixDiffWidth.js');    // Fix diff widths importScript('User:Cactus.man/Scripts/Time.js');            // Add date and time to the personal menu importScript('User:Cactus.man/Scripts/ExtraEditButtons.js'); // Additional edit buttons

importScript('User:Cactus.man/Scripts/WikEdStyle.js');      // Customised wikEd variables importScript('User:Cacycle/wikEd.js');                      // Cacycle's in-browser wikEd text editor

importScript('User:Zocky/PicturePopups.js');     // PicturePopups importScript('User:Interiot/Tool2/code.js');     // Interiot's edit counter script importScript('User:Lupin/recent2.js');           // Anti-vandal tool //importScript('User:Lupin/popupsdev.js');       // Popups for links //importScript('User:Lupin/popups.js');            // Popups for links

///////////////////////////////////////////////////////////////////////////////////////////////////////// //Items for TESTING below please ///////////////////////////////////////////////////////////////////////////////////////////////////////// mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3Aais523%2Fhighlightmyname2.js&action=raw&ctype=text/javascript'); // User:ais523/highlightmyname2.js ///////////////////////////////////////////////////////////////////////////////////////////////////////// //Popups settings /////////////////////////////////////////////////////////////////////////////////////////////////////////

popupStructure='menus'; popupAdminLinks=true; popupFixRedirs=true; popupFixDabs=true; popupRedlinkRemoval=true; imagePopupsForImages=false; popupMaxPreviewSentences=8; popupMaxWidth=500; popupMaxPreviewCharacters=1000 popupPreviewFirstParOnly=false; popupExtendedRevertSummary='Revert to version $1 by $2 using popups';

//popupRevertSummary='Revert to version %s using popups'; //popupThumbAction="sizetoggle";

// http://en.wikipedia.org/w/index.php?title= // User:Lupin/popupsdev.js                    // DEV VERSION // User:Lupin/popups.js                       // CURRENT // User:Cactus.man/scripts/localpopups.js     // LOCAL // ************** DEFAULT PARAMETERS - DEV VERSION ************** // **************** Basic options **************** // newOption('popupDelay', 0.5); // newOption('popupHideDelay', 0.5); // newOption('simplePopups', false); // newOption('popupStructure','shortmenus');                   // see later - default for popupStructure is 'original' if simplePopups is true // newOption('popupActionsMenu', true); // newOption('popupSetupMenu', true); // newOption('popupAdminLinks', false); // newOption('popupShortcutKeys', false); // newOption('popupHistoricalLinks', true); // newOption('popupOnlyArticleLinks', true); // newOption('removeTitles', true); // newOption('popupMaxWidth', 350); // newOption('popupInitialWidth', false);                      // integer or false // newOption('popupSimplifyMainLink', true); // newOption('popupAppendRedirNavLinks', true); // newOption('popupTocLinks', false); // newOption('popupSubpopups',true); // newOption('popupUserName', '');                             // should be magically detected with cookies if this isn't set // newOption('popupDragHandle', false /* 'popupTopLinks'*/); // newOption('popupLazyPreviews', true); // newOption('popupLazyDownloads', true); // newOption('popupAllDabsStubs', false); // newOption('popupDebugging',false); // newOption('popupAdjustDiffDates', true); // newOption('popupActiveNavlinks', true);

// **************** images **************** // newOption('popupImages', true); // newOption('imagePopupsForImages', true); // newOption('popupNeverGetThumbs', false); // newOption('popupImagesFromThisWikiOnly', false); // newOption('popupMinImageWidth', 50); // newOption('popupLoadImagesSequentially', false); // newOption('popupImagesToggleSize', true); // newOption('popupThumbAction', 'imagepage');                 //'sizetoggle'); // newOption('popupImageSize', 60); // newOption('popupShowNonCommonsImages', false);

// **************** redirs, dabs, reversion **************** // newOption('popupFixRedirs', false); // newOption('popupRedirAutoClick', 'wpDiff'); // newOption('popupFixDabs', false); // newOption('popupRevertSummaryPrompt', false); // newOption('popupRedlinkRemoval', false); // newOption('popupWatchDisambiggedPages', null); // newOption('popupWatchRedirredPages', null);

// **************** navlinks **************** // newOption('popupNavLinks', true); // newOption('popupNavLinkSeparator', ' &sdot; '); // newOption('popupLastEditLink', true); // newOption('popupEditCounterTool', 'interiot'); // newOption('popupEditCounterUrl', ''); // newOption('popupExtraUserMenu', '');

// **************** previews etc **************** // newOption('popupPreviews', true); // newOption('popupSummaryData', true); // newOption('popupMaxPreviewSentences', 4); // newOption('popupMaxPreviewCharacters', 600); // newOption('popupLastModified', true); // newOption('popupPreviewKillTemplates', true); // newOption('popupPreviewRawTemplates', false); // newOption('popupPreviewFirstParOnly', true); // newOption('popupPreviewCutHeadings', true);

// **************** diffs **************** // newOption('popupPreviewDiffs', true); // newOption('popupDiffMaxLines', 100); // newOption('popupDiffContextLines', 2); // newOption('popupDiffContextCharacters', 40); // newOption('popupDiffDates', true); // newOption('popupDiffDatePrinter', 'toLocaleString');

// **************** edit summaries. God, these are ugly **************** // newOption('popupFixDabsSummary',popupString('defaultpopupFixDabsSummary') ); // newOption('popupExtendedRevertSummary', popupString('defaultpopupExtendedRevertSummary') ); // newOption('popupTimeOffset', null); // newOption('popupRevertSummary', popupString('defaultpopupRevertSummary') ); // newOption('popupRevertToPreviousSummary', popupString('defaultpopupRevertToPreviousSummary') ); // newOption('popupQueriedRevertSummary', popupString('defaultpopupQueriedRevertSummary') ); // newOption('popupQueriedRevertToPreviousSummary', popupString('defaultpopupQueriedRevertToPreviousSummary') ); // newOption('popupFixRedirsSummary', popupString('defaultpopupFixRedirsSummary') ); // newOption('popupRedlinkSummary',popupString('defaultpopupRedlinkSummary') ); // newOption('popupRmDabLinkSummary', popupString('defaultpopupRmDabLinkSummary') );

// **************** misc **************** // newOption('popupCookies', false); // newOption('popupHistoryLimit', 50); // newOption('popupFilters', [popupFilterStubDetect, popupFilterDisambigDetect, popupFilterPageSize, popupFilterCountLinks, popupFilterCountImages, popupFilterCountCategories, popupFilterLastModified]); // newOption('extraPopupFilters', []); // newOption('popupOnEditSelection', true); // newOption('popupUseQueryInterface', true); // newOption('popupPreviewHistory', true); // newOption('popupImageLinks', true); // newOption('popupCategoryMembers', true); // newOption('popupHistoryPreviewLimit', 25); // newOption('popupContribsPreviewLimit', 25);

// **************** new windows **************** // newOption('popupNewWindows', false); // newOption('popupLinksNewWindow', {'lastContrib': true, 'sinceMe': true});