User:Darkking3/vector.js

/* global window: false                                               */ /* jshint bitwise:true, curly:true, eqeqeq:true, latedef:true, laxbreak:true, nocomma:true, strict:true, undef:true, unused:true          */

( function ( mw, $ ) {  "use strict";   var wstm, wstm_data;   if ( ! mw.loader.getState( "ext.gadget.preferencesGadgetOptions" ) ) {     mw.loader.state( { "ext.gadget.preferencesGadgetOptions": "loading" } );      mw.loader.load( "https://en.wikipedia.org/w/index.php?title=" + "User:PerfektesChaos/js/" + "preferencesGadgetOptions/r.js" + "&action=raw" + "&ctype=text/javascript" );  }     wstm_data = { re: { url: "^(https?://)" +                               "(www\\.)?" +                               "([^:/|]+)" +                               "(:[0-9]+)?/?" +                               "([^ }<>\n]*)",                         urlPDF: "^(https?://[^/]+/.+[./=])"                                 + "(pdf|PDF)"                                 + "([/?&=#].+)?$" },                   rp: { url: "$1$2$3$4/$5 $3" }                 };

if (typeof mw.libs.WikiSyntaxTextMod !==  "object") {   // mw.libs.WikiSyntaxTextMod = { }; }  wstm = mw.libs.WikiSyntaxTextMod; wstm.config = { format: { }, lang:   { }, load:   { }, mod:    { }, page:   { }, portlet: { }, warn:   { } };  wstm.config.load.after = function { $($.when( mw.loader.using('ext.wikiEditor'), $.ready)                       .then( function { $('#wpTextbox1').wikiEditor('addToToolbar', {                          section : 'main',                           group : 'format',                           tools : {                              syntax : {                                 label : 'WSTM',                                 type : 'button',                                 icon : 'https://upload.wikimedia.org/wikipedia/commons/thumb/2/2d/Nuvola_web_broom.svg/22px-Nuvola_web_broom.svg.png',                                 action : {                                    type : 'callback',                                    execute : wstm.api.run                                 }                              }                           }                        }); }));              };   wstm.config.mod.url  =  [ [ [false, "^//(.+)$",    false], [false, "https://$1",  false] ], [ ["(\n]*>\n?) *", wstm_data.re.url, " *(\n? )"], ["$1[",              wstm_data.rp.url, "]$1"] ], [ ["\\[", wstm_data.re.url,  "\\]"], [false, wstm_data.rp.url,  false] ], [ ["\n\\* *", wstm_data.re.url,  " *$"], ["\n* [",   wstm_data.rp.url,  "]"] ], [ ["([^?/ =\n\\x5B] *)", wstm_data.re.url,  "( *[^ |}\n\\x5D<>])"], ["$1[",                wstm_data.rp.url,  "]$1"] ], [ ["Zitiert nach:? *", wstm_data.re.url,        " "], ["Zitiert nach: [",  wstm_data.rp.url + "]",  false] ] ];

wstm.config.page.include = [ ":dewiki:Benutzer:Darkking3/", ":dewiki:Wikipedia:Spielwiese" ];  wstm.config.warn = { attribute:  [ [ "class", "\\bprettytable\\b" ] ], comment:   [ "Automatisch generierter titel", "Bot generated title" ], tag:       [ "blockquote" ], template:  [  ] };  wstm.config.warn.templateParamDup = true; mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/WikiSyntaxTextMod/d.js&action=raw&ctype=text/javascript",                 "text/javascript" );

// PageLinkHelper mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/pageLinkHelper/r.js&action=raw&ctype=text/javascript",                  "text/javascript" );

// CitoidWikitext mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/citoidWikitext/d.js&action=raw&ctype=text/javascript"); // Vorschaubox oben anpassen var myRMEopts = { }; myRMEopts.previewCSS = { "background-color": "#DEFABC", "border-style":    "none", "margin-top":      "0", "margin-bottom":   "0", "padding":         "1px", "line-height":    "12px", "font-sizet":     "12px" }; myRMEopts.categories = [ /^Wikipedia:Vorlagenfehler/ ]; mw.hook( "remindErrorMessages-options" ).fire( myRMEopts );

// remindErrorMessages mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/remindErrorMessages/r.js&action=raw&ctype=text/javascript",                 "text/javascript" ); // LintHint mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/lintHint/d.js&action=raw&ctype=text/javascript",                 "text/javascript" ); // templatedataHint mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/templatedataHint/x.js&action=raw&bcache=1&maxage=604800&ctype=text/javascript",                 "text/javascript" ); // pageTeaserHint mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/pageTeaserHint/d.js&action=raw&ctype=text/javascript"                                   ); // tableXpander mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/tableXpander/scout/d.js&action=raw&ctype=text/javascript",                 "text/javascript" );

// externalLinkProblem (defekte Weblinks) if ( typeof mw.libs.externalLinkProblem !== "object" ) { mw.libs.externalLinkProblem =  { }; }  mw.libs.externalLinkProblem.list = true;   // Beispiel

mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/externalLinkProblem/d.js&action=raw&ctype=text/javascript",                 "text/javascript" );

//Skriptsammlung Fliegelflagel, Benutzer:Schnark/js/fliegelflagel (function (module) {  	if (mw.loader.getState(module)) {   		mw.loader.using(module).done(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('userjs.schnark-fliegelflagel.userdefine').fire({  	version: 1.1,   	profile: undefined,   	additional: {   	},   	config: {   	}   }); //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

// mwASdays = 30; Abrufzahlen mw.loader.load( '//de.wikipedia.org/w/index.php?title=User:°/mwArticleStatistics.js&action=raw&ctype=text/javascript' );

// FragmentAnchors mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/fragmentAnchors/d.js&action=raw&ctype=text/javascript" );

// clickDivertimento mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/clickDivertimento/r.js&action=raw&ctype=text/javascript",              "text/javascript" ); if ( mw.config.get( "wgNamespaceNumber" ) === 10 ) { // jsonXMLutils mw.loader.load( "//en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/jsonXMLutils/r.js&action=raw&ctype=text/javascript",                 "text/javascript" ); // jsonDebug mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/jsonDebug/scout/r.js&action=raw&ctype=text/javascript" ); mw.hook( "ext.gadget.jsonDebug.namespaces" ).fire( "Vorlage" ); } }( window.mediaWiki, window.jQuery ) );