Jump to content

User:Velella/standard.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// [[User:Lupin/popups.js]]
// importScript('User:Ale_jrb/Scripts/igloo.js');


mw.loader.load(
             'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
             + '&action=raw&ctype=text/javascript&dontcountme=s');

importScript('User:AzaToth/twinkle.js');

if( typeof( TwinkleConfig ) == 'undefined' ) TwinkleConfig = {}; // DO NOT REMOVE THIS LINE - ALL TWINKLE SETTINGS AFTER THIS
TwinkleConfig.batchdeleteChunks                         =       50;
TwinkleConfig.batchDeleteMinCutOff                      =       5;
TwinkleConfig.batchMax                                  =       5000;
TwinkleConfig.batchProtectChunks                        =       50;
TwinkleConfig.batchProtectMinCutOff                     =       5;
TwinkleConfig.batchundeleteChunks                       =       50;
TwinkleConfig.batchUndeleteMinCutOff                    =       5;
TwinkleConfig.blankTalkpageOnIndefBlock                 =       false;
TwinkleConfig.defaultWarningGroup                       =       1;
TwinkleConfig.deleteTalkPageOnDelete                    =       false;
TwinkleConfig.deletionSummaryAd                         =       ' using [[WP:TW|TW]]';
TwinkleConfig.deliChunks                                =       500;
TwinkleConfig.deliMax                                   =       5000;
TwinkleConfig.deliWatchPage                             =       "default";
TwinkleConfig.deliWatchUsages                           =       "no";
TwinkleConfig.deliWatchUser                             =       "default";
TwinkleConfig.markAIVReportAsMinor                      =       true;
TwinkleConfig.markSockReportAsMinor                     =       true;
TwinkleConfig.markUAAReportAsMinor                      =       true;
TwinkleConfig.markRevertedPagesAsMinor                  =       [ 'vand' ];
TwinkleConfig.markSpeedyPagesAsMinor                    =       false;
TwinkleConfig.markSpeedyPagesAsPatrolled                =       true;
TwinkleConfig.notifyUserOnDeli                          =       true;
TwinkleConfig.notifyUserOnSpeedyDeletionNomination      =       [ 'g1', 'g2', 'g3', 'g4', 'g10', 'g11', 'g12', 'a1', 'a2', 'a3', 'a5', 'a7', 'a9', 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f9', 'f10', 'f11', 'u3', 't2', 't3', 'p2' ];
TwinkleConfig.offerReasonOnNormalRevert                 =       true;
TwinkleConfig.openTalkPage                              =       [ 'agf', 'norm', 'vand' ];
TwinkleConfig.openTalkPageOnAutoRevert                  =       false;
TwinkleConfig.openUserTalkPageOnSpeedyDelete            =       [ 'g1', 'g2', 'g3', 'g4', 'g5', 'g10', 'g11', 'g12', 'a1', 'a3', 'a7', 'a9', 'f3', 'f4', 'f5', 'f6', 'f7', 'f9', 'f11', 'u3', 't2' ];
TwinkleConfig.orphanBacklinksOnSpeedyDelete             =       {exclude:['g6'], orphan:true};
TwinkleConfig.proddeleteChunks                          =       50;
TwinkleConfig.prodReasonDefault                         =       "";
TwinkleConfig.protectionSummaryAd                       =       ' using [[WP:TW|TW]]';
TwinkleConfig.revertMaxRevisions                        =       50;
TwinkleConfig.showRollbackLinks                         =       [ 'diff', 'others' ];
TwinkleConfig.showSharedIPNotice                        =       true;
TwinkleConfig.speedyWindowHeight                        =       500;
TwinkleConfig.speedyWindowWidth                         =       800;
TwinkleConfig.summaryAd                                 =       ' using [[WP:TW|TW]]';
TwinkleConfig.unlinkNamespaces                          =       [ 0, 100 ];
TwinkleConfig.userTalkPageMode                          =       'window';
TwinkleConfig.watchProdPages                            =       true;
TwinkleConfig.watchRevertedPages                        =       [ 'agf', 'norm', 'vand', 'torev' ];
TwinkleConfig.watchSpeedyPages                          =       [ 'g3', 'g5', 'g10', 'g11', 'g12', 't1' ];
TwinkleConfig.watchWarnings                             =       true;
TwinkleConfig.welcomeUserOnSpeedyDeletionNotification   =       TwinkleConfig.notifyUserOnSpeedyDeletionNomination;
TwinkleConfig.xfdWatchDiscussion                        =       "default";
TwinkleConfig.xfdWatchList                              =       "no";
TwinkleConfig.xfdWatchPage                              =       "default";
TwinkleConfig.xfdWatchUsages                            =       "no";
TwinkleConfig.xfdWatchUser                              =       "default";
FriendlyConfig.clockStyle                       =       "dynamic";
FriendlyConfig.enableClock                      =       true;
FriendlyConfig.groupByDefault                   =       true;
FriendlyConfig.idsToRename                      =       [
                { id: 'ca-nstab-main', name: 'Main', mainPageOnly: true },
                { id: 'ca-nstab-help', name: 'Help' },
                { id: 'ca-nstab-special', name: 'Special' },
                { id: 'ca-nstab-project', name: 'Project' },
                { id: 'ca-nstab-user', name: 'User' },
                { id: 'ca-edit', name: 'Edit' },
                { id: 'ca-viewsource', name: 'Source' },
                { id: 'ca-talk', name: 'Talk' },
                { id: 'ca-undelete', name: 'Undelete' },
                { id: 'ca-addsection', name: '+' }
        ];
FriendlyConfig.insertHeadings                   =       true;
FriendlyConfig.insertSignature                  =       true; //sign welcome templates, where appropriate
FriendlyConfig.insertTalkbackSignature          =       true; //always sign talkback templates
FriendlyConfig.insertUsername                   =       true;
FriendlyConfig.markSharedIPAsMinor              =       true;
FriendlyConfig.markTaggedPagesAsMinor           =       true;
FriendlyConfig.markTaggedPagesAsPatrolled       =       true;
FriendlyConfig.markTalkbackAsMinor              =       true;
FriendlyConfig.markWelcomesAsMinor              =       true;
FriendlyConfig.maskTemplateInSummary            =       true;
FriendlyConfig.quickWelcomeMode                 =       "semiauto";
FriendlyConfig.quickWelcomeTemplate             =       "Welcome";
FriendlyConfig.talkbackHeading                  =       "== Talkback ==";
FriendlyConfig.topWelcomes                      =       false;
FriendlyConfig.watchTaggedPages                 =       true;
FriendlyConfig.watchWelcomes                    =       true;
FriendlyConfig.welcomeHeading                   =       "== Welcome ==";

importScript('User:Smith609/toolbox.js');
 
importScript('User:Ale_jrb/Scripts/igloo.js'); // [[User:Ale_jrb/Scripts/igloo]]

// Add [[WP:Reflinks]] launcher in the toolbox on left
$(function () {
 mw.util.addPortletLink(
  "p-tb",     // toolbox portlet
  "http://toolserver.org/~dispenser/cgi-bin/webreflinks.py/" + wgPageName 
   + "?client=script&citeweb=on&overwrite=&limit=30&lang=" + wgContentLanguage,
  "Reflinks"  // link label
)});