User:Dwain Zwerg/global.js

From Meta, a Wikimedia project coordination wiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
mw.loader.load('//de.wikipedia.org/w/index.php?title=User:Doc_Taxon/awards.js&action=raw&ctype=text/javascript');
mw.loader.load('https://meta.wikimedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:MoreMenu.import.js');
mw.loader.load( '//de.wikipedia.org/w/index.php?title=MediaWiki:Gadget-Rechtschreibpruefung.js&action=raw&ctype=text/javascript' );
mw.loader.load('https://commons.wikimedia.org/w/index.php?title=User:Jack_who_built_the_house/convenientDiscussions.js&action=raw&ctype=text/javascript');
mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:DerHexer/fixlinks.js&action=raw&ctype=text/javascript');
mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:Schnark/js/highlight.js&action=raw&ctype=text/javascript'); //[[Benutzer:Schnark/js/highlight.js]]
mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:Schnark/js/antispoof.js&action=raw&ctype=text/javascript'); //[[Benutzer:Schnark/js/antispoof.js]]
mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-scrollUpButton.js&action=raw&ctype=text/javascript');
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:Dwain Zwerg/KatGenderer.js&action=raw&ctype=text/javascript');
// mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Yair_rand/WikidataInfo.js&action=raw&ctype=text/javascript' );
// mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:Habitator_terrae/WPWTF.js&action=raw&action=raw&ctype=text/javascript'); //[[Benutzer:Habitator terrae/WPWTF.js/Doku]]
// mw.loader.load("https://en.wikipedia.org/w/index.php?action=raw&title=User:Terasail/HeaderIcons.js&ctype=text/javascript"); [[:en:User:Terasail/HeaderIcons]] //
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/citoidWikitext/r.js&action=raw&bcache=1&maxage=86400&ctype=text/javascript");
mw.libs.WikiSyntaxTextMod  =  { config:  { diffPage: false }  };
mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );
// [[Benutzer:PerfektesChaos/js/WikiSyntaxTextMod]]
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/WikiSyntaxTextMod/r.js&action=raw&bcache=1&maxage=604800&ctype=text/javascript",
               "text/javascript");
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/externalLinkProblem/r.js&action=raw&bcache=1&maxage=86400&ctype=text/javascript");
mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:Suhadi Sadono/recent2.js&action=raw&ctype=text/javascript');
if ( mw.config.get( "wgNamespaceNumber" )  ===  -1 ) {
   mw.loader.load("https://www.mediawiki.org/w/index.php?title=User:PerfektesChaos/js/resultListSort/r.js&action=raw&ctype=text/javascript&maxage=86400&*",
                  "text/javascript");
}
mw.loader.load("https://www.mediawiki.org/w/index.php?title=User:PerfektesChaos/js/paneMarker/r.js&action=raw&ctype=text/javascript&maxage=604800&*",
               "text/javascript");
mw.loader.getScript( 'https://en.wikipedia.org/w/load.php?modules=ext.gadget.libSettings' ).then( 
function() {
	mw.loader.load( 'https://en.wikipedia.org/w/load.php?modules=ext.gadget.Shortdesc-helper' );
})
// Benutzer:PerfektesChaos/js/tableXpander
mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/tableXpander/scout/r.js&action=raw&maxage=86400&ctype=text/javascript" );
// [[User:TMg/cleanDiff.js]]
mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/cleanDiff.js&action=raw&ctype=text/javascript' );    
// [[User:ExURLBot/externalURLform.js]]
    mw.loader.load( 'https://de.wikipedia.org/w/index.php?title=User:ExURLBot/externalURLform.js&action=raw&ctype=text/javascript' );
var cleanDiffLinkLimit = 9999;
// [[User:TMg/autoFormatter.js]]
    mw.loader.load( 'https://de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript' ); // autoFormatter ist momentan nicht voll funktionsfähig
    mw.loader.load( 'https://de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter/autoDiff.js&action=raw&ctype=text/javascript' ); // Notwendig für Autoformatter und WeblinkChecker
// [[User:TMg/weblinkChecker.js]]
mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/weblinkChecker.js&action=raw&ctype=text/javascript' );
// [[User:CaroFraTyskland/pageviewes.js]] Thanks!
mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzerin:CaroFraTyskland/pageviews.js&action=raw&ctype=text/javascript' );
mw.loader.load('https://de.wikipedia.org/w/index.php?title=Benutzer:DerHexer/massenmail.js&action=raw&ctype=text/javascript');
mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/pageLinkHelper/r.js&action=raw&bcache=1&maxage=604800&ctype=text/javascript",
                "text/javascript" );
// [[:en:Wikipedia:Shortdesc helper]] – Wikidata-Kurzbeschreibungen im Artikel ändern
mw.loader.getScript( 'https://en.wikipedia.org/w/load.php?modules=ext.gadget.libSettings' ).then( function() {
	mw.loader.load( 'https://en.wikipedia.org/w/load.php?modules=ext.gadget.Shortdesc-helper' );
})
if ( mw.loader.getState( 'ext.gadget.AutosuggestSitelink' ) !== null ) {
    mw.loader.load( 'ext.gadget.AutosuggestSitelink' );
} else {
    mw.loader.load( 'https://meta.wikimedia.org/w/load.php?modules=ext.gadget.AutosuggestSitelink' );
}
// [[Benutzer:PerfektesChaos/js/watchCategories]] – Wartungskategorien in der Beobachtungsliste anzeigen 
if ( typeof mw.libs.watchCategories  !==  "object"  ||  ! mw.libs.watchCategories ) {
   mw.libs.watchCategories  =  { };
}
mw.libs.watchCategories.cats = ["Kategorie:Wikipedia:Veraltet_nach_Jahr_2023", "Kategorie:Wikipedia:Veraltet_nach Januar_2023", "Kategorie:Wikipedia:Veraltet_nach_Februar_2023"];
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/watchCategories/r.js&action=raw&bcache=1&maxage=604800&ctype=text/javascript",
               "text/javascript");

mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:Jowereit/typografie.js&action=raw&ctype=text/javascript'); //[[Benutzer:Jowereit/typografie.js]]
mw.loader.load('https://de.wikipedia.org/w/index.php?title=User:NBarchiv/markExmentors.js&action=raw&ctype=text/javascript'); //Benutzer:NBarchiv/markExmentors.js
// Versionsunterschied bei Bedarf in neues Fenster umleiten by de:Tkarcher (https://de.wikipedia.org/wiki/Wikipedia:Technik/Werkstatt#VersionsGeschichte_erlaubt_kein_neues_Tab)
$( ".historysubmit" ).click(function( e ) {
  $( "#mw-history-compare").attr("target", e.ctrlKey ? "_blank" : "")});
// Zweiten Button für Versionsunterschied in neuem Fenster by de:Tkarcher (https://de.wikipedia.org/wiki/Wikipedia:Technik/Werkstatt#VersionsGeschichte_erlaubt_kein_neues_Tab)
$( ".historysubmit" ).after(
  $( ".historysubmit" ).first().clone()
   .data("newTab", true).attr("value", "gewählte Versionen in neuem Tab vergleichen"));
$( ".historysubmit" ).click(function( e ) {
  $( "#mw-history-compare").attr("target", $(this).data("newTab") ? "_blank" : "")});
//Skriptsammlung Fliegelflagel, [[Benutzer:Schnark/js/fliegelflagel]]
(function (module) {
	if (mw.loader.getState(module)) {
		mw.loader.using(module).then(function () {
			((mw.libs.ve.targetLoader && mw.libs.ve.targetLoader.addPlugin) || mw.libs.ve.addPlugin)(function () {
				var ve = $.Deferred();
				mw.hook('userjs.schnark-fliegelflagel.ve').fire(ve);
				return ve.promise();
			});
		});
	}
})('ext.visualEditor.desktopArticleTarget.init');
mw.hook('moremenu.ready').add(function (config) {
    MoreMenu.addLink(
        'page',
        'Beobachtungsliste++',
        'https://wikitools.toolforge.org/watchlist.php'
    );
    MoreMenu.addLink(
    	'page',
    	'Suche++',
    	mw.util.getUrl('Special:Suche++')
    );
    MoreMenu.addLink(
    	'page',
    	'Artikeltitel Grep',
    	'https://grep.toolforge.org/index.php?lang=de&project=wikipedia&namespace=0&pattern=.%2B%5C%28Film%5C%29&redirects=on&limit=on'
    );
});
mw.hook('userjs.schnark-fliegelflagel.userdefine').fire({
	version: 1.1,
	profile: undefined,
	additional: {
	},
	config: {
		bklCheck: function (config) {
		config.cats['Kategorie:Wikipedia:Löschkandidat'] = {
			className: 'lk-link',
			titleAppend: ' (Löschkandidat)'
		};
		config.css += '.lk-link{background-color:#FF9191;}.lk-link:after{content:"LK";font-size:70%;vertical-align:sub;line-height:0;}';
		config.useDisambig = false;
	}
	}
});
//[[Benutzer:Schnark/js/fliegelflagel.js/define.js]]
mw.loader.load('https://de.wikipedia.org/w/index.php?title=Benutzer:Schnark/js/fliegelflagel.js/define.js&action=raw&ctype=text/javascript');
mw.loader.load('https://de.wikipedia.org/w/index.php?title=Benutzer:Schnark/js/fliegelflagel.js/load.js&action=raw&ctype=text/javascript');
//Fliegelflagel Ende
// Modul: recent2.js
 
if (wgPageName== "Benutzer:Suhadi_Sadono/Recent_IP_edits") 
  window.updateSeconds = 3;
else if (wgPageName== "Benutzer:Suhadi_Sadono/All_recent_changes") 
  window.updateSeconds = 10;
else if (wgPageName== "Benutzer:Suhadi_Sadono/Filter_recent_change") 
  window.updateSeconds = 20;
else if (wgPageName== "Benutzer:Suhadi_Sadono/Monitor_my_watchlist") 
  window.updateSeconds = 60;
else if (wgPageName== "Benutzer:Suhadi_Sadono/Live_spellcheck") 
  window.updateSeconds = 30;
else 
  window.updateSeconds = 15;
// Modul: markMentors.js
var markmentors = true;          // Mentoren besonders hervorheben?
var markmsubpages = true;        // auch Links auf Mentoren-Unterseiten markieren?
var mmwatchlist = true;          // auch auf der Beobachtungsliste?
var mmcontribs = true;           // auch auf den Benutzerbeiträgen?
var markmtxt = "M";              // Markierung für Mentoren

// page type variables: namespace == -1
 if (typeof(isSpecial) == 'undefined') var isSpecial  = (mw.config.get('wgCanonicalNamespace') == "Special");
 if (typeof(isContrib) == 'undefined') var isContrib = (isSpecial && (mw.config.get('wgCanonicalSpecialPageName') == "Contributions"));
 if (typeof(isWatchlist) == 'undefined') var isWatchlist = (isSpecial && (mw.config.get('wgCanonicalSpecialPageName') == "Watchlist"));



if (!(!mmwatchlist && isWatchlist) && !(!mmcontribs && isContrib)) {
   if (markmentors)
     mw.loader.load('/w/index.php?title=Benutzer:Anka Friedrich/markMentors.js'
     + '&action=raw&ctype=text/javascript');  // [[Benutzer:Anka Friedrich/markMentors.js]]
}

//Rechtschreibkorrekturoptionen//
window.RPonAllPages = true;