Jump to content

User:Katanzag/monobook.js: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Katanzag (talk | contribs)
m fix popups/wikiEd bug
m Maintenance: Replacing document.write with mw.loader.load (mw:ResourceLoader/Migration_guide_(users)#Avoid_document.write() - phab:T130879)
Line 47: Line 47:
//Interiot's javascript edit counter
//Interiot's javascript edit counter
if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) {
if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) {
mw.loader.load('https://en.wikipedia.org/enwiki/w/index.php?title=User:Interiot/Tool2/code.js&action=raw&ctype=text/javascript'); }
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/enwiki/w/index.php?title=User:Interiot/Tool2/code.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); }


//TWINKLE
//TWINKLE

Revision as of 20:14, 26 March 2022

// Popups http://en.wikipedia.org/wiki/Wikipedia:Tools/Navigation_popups
// http://it.wikipedia.org/wiki/Wikipedia:Popup_di_navigazione

document.write('<script type="text/javascript" src="' 
+ 'http://it.wikipedia.org/enwiki/w/index.php?title=Utente:Emc2/strings-it.js' 
+ '&action=raw&ctype=text/javascript"></script>');

// [[User:Lupin/popups.js]]

importScript('User:Lupin/popups.js');
popupFixDabs=true;
simplePopups=false;
popupStructure='menus';
popupAdminLinks=true;
popupShortcutKeys=true;

//WikiED
// installation of the wikEd editing page extension

// install [[User:Cacycle/diff]] text diff code
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/enwiki/w/index.php?title=User:Cacycle/diff.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

// Commented out to fix bug in Popups which has a same tool,
// see http://en.wikipedia.org/wiki/Wikipedia_talk:Tools/Navigation_popups#Stopped_Working
//// install [[User:Pilaf/Live_Preview]] page preview tool
//document.write('<script type="text/javascript" src="'
//+ 'http://en.wikipedia.org/enwiki/w/index.php?title=User:Pilaf/livepreview.js'
//+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

// install [[User:Mboverload/RegExTypoFix|RegExTypoFix]] common typo fixer
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/enwiki/w/index.php?title=User:Cacycle/RegExTypoFix.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

// install [[User:Cacycle/wikEd international]] translation here

// install [[User:Cacycle/wikEd]] editing page extension
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/enwiki/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');




//Interiot's javascript edit counter
if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) {
  mw.loader.load('https://en.wikipedia.org/enwiki/w/index.php?title=User:Interiot/Tool2/code.js&action=raw&ctype=text/javascript'); }

//TWINKLE
//http://en.wikipedia.org/wiki/Wikipedia:TWINKLE
importScript('User:AzaToth/twinkle.js');
//default TwinkleConfig 
TwinkleConfig = {


revertMaxRevisions              :       50,
userTalkPageMode                :       'window',
showSharedIPNotice              :       true,
openTalkPage                    :       [ 'agf', 'norm', 'vand' ],
openTalkPageOnAutoRevert        :       false,
summaryAd                       :       " using [[WP:TWINKLE|TW]]",
deletionSummaryAd               :       " using [[WP:TWINKLE|TW]]",
protectionSummaryAd             :       " using [[WP:TWINKLE|TW]]",
watchSpeedyPages                :       [ 'g3', 'g5', 'g10', 'g11', 'g12' ],
watchProdPages                  :       true,
openUserTalkPageOnSpeedyDelete  :       [ 'g1', 'g2', 'g10', 'g11', 'g12', 'a1', 'a7', 'i3', 'i4', 'i5', 'i6', 'i7', 'u3', 't1' ],
watchRevertedPages              :       [ 'agf', 'norm', 'vand', 'torev' ],
markRevertedPagesAsMinor        :       [ 'agf', 'norm', 'vand', 'torev' ],
deleteTalkPageOnDelete          :       false,
watchWarnings                   :       true,
markAIVReportAsMinor            :       true,
markSpeedyPagesAsMinor          :       true,
offerReasonOnNormalRevert       :       true,
orphanBacklinksOnSpeedyDelete   :       {orphan:true, exclude:['g6']}
};