Gebruiker:Tomgreep/Zeusmode/zm.js

Opmerking: na het publiceren is het wellicht nodig uw browsercache te legen om de veranderingen te zien.

  • Firefox / Safari: houd Shift ingedrukt terwijl u:je op Vernieuwen klikt of druk op Ctrl-F5 of Ctrl-R (⌘-Shift-R op een Mac)
  • Google Chrome: druk op Ctrl-Shift-R (⌘-Shift-R op een Mac)
  • Edge: houd Ctrl ingedrukt terwijl u:je op Vernieuwen klikt of druk op Ctrl-F5.
/* Version 2.beta.4
 
[[Image:Zeus_head_thumb-zanaq.png|left]]
 
 
'''Zeusmode''' - by [[User:Zanaq|Zanaq]] - is an extensive elaboration of Sam Hocevar's godmode-light script and some other [[Wikipedia:WikiProject_User_scripts/Scripts|scripts]]. It has been tested with [[Mozilla]] and [[Mozilla Firefox]]. Some functionality is retained when using [[Internet Explorer]].
*/
 
//<pre><nowiki>
 
if (navigator.appName != 'Microsoft Internet Explorer') {
 
zmVersion='0.041';
 
var rollbacklink = 'rollback';
var cantrollback = 'Cannot revert edit; last contributor is only author of this page.';
var alreadyrolled = 'Cannot rollback last edit of [[$1]] by [[User:$2|$2]] ([[User talk:$2|Talk]]); someone else has edited or rolled back the page already. Last edit was by [[User:$3|$3]] ([[User talk:$3|Talk]]). ';
var revertpage = 'Reverted edits by [[Special:Contributions/$2|$2]] to last version by $1';
 
var txtPleaseWait = 'Please wait, reverting edits by ';
var txtErrBadAuth= '<b>Error:</b> Bad authentication token!';
var txtGetHist= 'Getting article history...';
var txtLast = 'Last';
var txtShowMostRecentDiff="Show most recent diff";
var txtComment = 'Comment';
 
var txtSince = 'Since';
var txtChangesSinceILastEdited = "Changes since I last edited";
 
var txtEditTopLink = 'edit';
var txtHideLink = 'hide';
 
var txtSavePage = 'Save';
var txtMinorEdit = '<b>M</b>';
 
var stupidEnglishWatchlist = false;
var txtPlace = 'revert to version by [[User:$3|$3]] of $2 ($1)';
var txtPlaceLink = 'place';
var txtDiffPrevious = 'cur';
var txtEditconflict = 'Edit conflict: Someone has altered the page since you last loaded it';
var lenRevisionOf = 0;
var diffadjuster = 2;
 
var txtParseEditform = 'Parsing the editform <small>(any error in this stage indicates an error in the <a href=http://nl.wikipedia.org/w/index.php?title=Speciaal:Recentchanges&days=14&namespace=8>mediawiki namespace</a>.)</small>: ';
var txtOk = ' Ok';
var txtSubmitEditform = 'Now submitting the form..... ';
var txtPlaceOld = 'Placing old version.... '
var txtLoadEditform = 'Loading the editform ($1): ';
var txtParseHist = 'Parsing article history';
txtLastErr = 'Error: Last editor is $1 not $2';
txtOnlyErr = 'Error: $1 is the only editor!';
var txtNotEdited = 'You have not edited this page! (recently)';
var txtLastEdited='You are the last editor';
var txtAddedListUsers = ' (<a href="/wiki/User_talk:$1">Talk</a> - <a href="/wiki/Special:Contributions/$1">Contributions</a> - <a href="/w/index.php?title=Special:Log&type=block&page=Gebruiker:$1">Block log</a>)';
namespaceSpecial = 'Special';
 
deletionLinkId='';
deletionTemplates='';
 
txtSavePage= 'Save';
txtNewVersion = 'You have newly installed zeusmode, or a newer version has been detected. You must now first save your preferences.';
txtNewVerAlert = ' - New Version available. You may want to visit <a href=/wiki/Zeusmode:Preferences>Zeusmode:Preferences</a> and save your settings.';
 
txtRefresh = 'After saving you need to refresh the cache to see effect (Ctrl+Shift+R). It may take a while if the site is slow';
settingsSummary='[[User:Zanaq/Zeusmode|Zeusmode]] - changing settings';
 
txtRCOptionCaptions=['Last 500 unmarked anonymous edits', 'Last 250 ....', 'Last 50 ....']
txtRCOptions=['?hidepatrolled=1&hideliu=1&limit=500', '?hidepatrolled=1&hideliu=1&limit=250', '?hidepatrolled=1&hideliu=1&limit=50']
txtQFunction='quickTemplate bar';
  txtLocalTemplates='Use the standard templates defined for the local wikipedia.';
  txtCustomTemplates='Use custom templates:';
  txtCTOptions=['', 'Special:MyPage/zeusmodetemplates.js', 'User:Zanaq/zeusmodetemplates.js'];
 
txtRFunction='Revert';
  txtRollbackFunction='Roll back';
  txtPlaceFunction='Place old version';
  txtUndoFunction='Undo tweak';
 
txtWFunction='Watchlist';
   txtSinceLinksFunction='Links to diffs since last edited in watchlist (not for extended watchlist)';
   txtSinceTabFunction='Tab to diff since last edited';
   txtLastTabFunction='Tab to last edit';
 
txtNFunction='New pages';
   txtMarkPatrolledFunction = 'Mark as patrolled tweak';
txtMFunction='Miscellanea';
  txtBlockReqFunction='Add block request (Dutch wikipedia only)'
  txtRecentFunction='Recent changes defaults: ';
  txtUserListLinks='Show extra links in the list of registered users';
 
txtIsSysop = 'I am an administrator';
 
 
 
 
document.write('<scr'+'ipt type="text/javascript"'
  + 'src="http://nl.wikipedia.org/w/index.php?title=Gebruiker:Tomgreep/Zeusmode/' + wgContentLanguage + '.js'
  + '&action=raw&ctype=text/javascript&dontcountme=s"></scr'+'ipt>');
 
 
 
 
if ( typeof ( isSysop ) == "undefined" ) isSysop = (wgUserGroups.toString().indexOf('sysop') ==-1) ? false : true;
 
if ( typeof ( zmUseQuickTemplate ) == "undefined" )      zmUseQuickTemplate=true;
if ( typeof ( zmUseLocalTemplates ) == "undefined" )      zmUseLocalTemplates=true;
if ( typeof ( zmUseCustomTemplates ) == "undefined" )      zmUseCustomTemplates=false;
if ( typeof ( zmCustomTemplateLocation ) == "undefined" )     zmCustomTemplateLocation = '';
 
if ( typeof ( zmUseRevert ) == "undefined" )    zmUseRevert=true;
if ( typeof ( zmUsePlace ) == "undefined" )        zmUsePlace = true;
if ( typeof ( zmUseUndo ) == "undefined" )        zmUseUndo = true;
if ( typeof ( zmUseRollback ) == "undefined" )         zmUseRollback = (isSysop == true) ? false : true;
if ( typeof ( zmUseWatchlist ) == "undefined" )          zmUseWatchlist=true;
if ( typeof ( zmUseSinceLinks ) == "undefined" )            zmUseSinceLinks=true;
if ( typeof ( zmUseSinceTab ) == "undefined" )            zmUseSinceTab=true;
if ( typeof ( zmUseLastTab ) == "undefined" )            zmUseLastTab=true;
if ( typeof ( zmUseNewPages ) == "undefined" )          zmUseNewPages=true;
if ( typeof ( zmUseMarkPatrolled ) == "undefined" )            zmUseMarkPatrolled=true;
if ( typeof ( zmUseMisc ) == "undefined" )          zmUseMisc=true;
if ( typeof ( zmUseBlockRequest ) == "undefined" )            zmUseBlockRequest = (isSysop == true) ? false : true;
if ( typeof ( zmRecentChangesLink ) == "undefined" )            zmRecentChangesLink=true;
if ( typeof ( zmzmRecentChangesDefault ) == "undefined" )            zmRecentChangesDefault='?hidepatrolled=1&hideliu=1&limit=500';
if ( typeof ( zmUseUserListLinks ) == "undefined" )            zmUseUserListLinks=true;
 
 
 
 
 
 
 
//a=["fd,m",'dssfd', ",mdsmds"]
//alert(a.toSource());
 
 
 
// document.write('<SCRIPT SRC="http://zebian/apache2-default/toolbox.js"><\/SCRIPT>');
document.write('<scr'+'ipt type="text/javascript"'
  + 'src="http://nl.wikipedia.org/w/index.php?title=Gebruiker:Tomgreep/Zeusmode/toolbox.js'
  + '&action=raw&ctype=text/javascript&dontcountme=s"></scr'+'ipt>');
 
 
 
 if (( typeof ( zmver ) == "undefined" ) || (zmver < zmVersion) ||(document.location.href.indexOf('Zeusmode:Preferences') != -1))
 {
//  document.write('<SCRIPT SRC="http://zebian/apache2-default/preferences.js"><\/SCRIPT>');
document.write('<scr'+'ipt type="text/javascript"'
  + 'src="http://nl.wikipedia.org/w/index.php?title=Gebruiker:Tomgreep/Zeusmode/preferences.js'
  + '&action=raw&ctype=text/javascript&dontcountme=s"></scr'+'ipt>');
 
} 
 
if (document.location.href.indexOf('Zeusmode:Preferences') == -1)
{
 
if ((zmUseNewPages) && ((wgCanonicalSpecialPageName == "Newpages") || (document.location.href.indexOf('&diff=') != -1) || (document.location.href.indexOf('&rcid=') != -1)))
//  document.write('<SCRIPT SRC="http://zebian/apache2-default/newarticles.js"><\/SCRIPT>');
document.write('<scr'+'ipt type="text/javascript"'
  + 'src="http://nl.wikipedia.org/w/index.php?title=Gebruiker:Tomgreep/Zeusmode/newpages.js'
  + '&action=raw&ctype=text/javascript&dontcountme=s"></scr'+'ipt>');
 
 
if ( (zmUseRevert) &&  (  (wgCanonicalSpecialPageName == 'Contributions')  || (document.location.href.indexOf('&action=history') != -1) || (document.location.href.indexOf('&diff=') != -1)  || (document.location.href.indexOf('&undo=') != -1) )  )
// document.write('<SCRIPT SRC="http://zebian/apache2-default/revert.js"><\/SCRIPT>');
document.write('<scr'+'ipt type="text/javascript"'
  + 'src="http://nl.wikipedia.org/w/index.php?title=Gebruiker:Tomgreep/Zeusmode/revert.js'
  + '&action=raw&ctype=text/javascript&dontcountme=s"></scr'+'ipt>');
 
 
if ( (zmUseQuickTemplate) &&  (document.location.href.indexOf('&action=history')==-1) && ((wgCanonicalNamespace != 'Special')  || (wgCanonicalSpecialPageName == "Contributions")  ))
  document.write('<scr'+'ipt type="text/javascript"'
  + 'src="http://nl.wikipedia.org/w/index.php?title=Gebruiker:Tomgreep/Zeusmode/qtemplate.js'
  + '&action=raw&ctype=text/javascript&dontcountme=s"></scr'+'ipt>');
 
 
/*
if ( (zmUseQuickTemplate) &&  (document.location.href.indexOf('&action=history')==-1) && ((wgCanonicalNamespace != 'Special')  || (wgCanonicalSpecialPageName == "Contributions")  ))
  document.write('<SCRIPT SRC="http://zebian/apache2-default/qtemplate.js"><\/SCRIPT>');
*/
if  ((zmUseWatchlist) &&    ((wgCanonicalSpecialPageName == "Watchlist") || (wgCanonicalNamespace != 'Special')))
//       document.write('<SCRIPT SRC="http://zebian/apache2-default/watchlist.js"><\/SCRIPT>');
document.write('<scr'+'ipt type="text/javascript"'
  + 'src="http://nl.wikipedia.org/w/index.php?title=Gebruiker:Tomgreep/Zeusmode/watchlist.js'
  + '&action=raw&ctype=text/javascript&dontcountme=s"></scr'+'ipt>');
 
if  (zmUseMisc)
//       document.write('<SCRIPT SRC="http://zebian/apache2-default/misc.js"><\/SCRIPT>');
document.write('<scr'+'ipt type="text/javascript"'
  + 'src="http://nl.wikipedia.org/w/index.php?title=Gebruiker:Tomgreep/Zeusmode/misc.js'
  + '&action=raw&ctype=text/javascript&dontcountme=s"></scr'+'ipt>');
 
}
 
}
//</nowiki></pre>