Benutzer:Mfb/monobook.js
aus Wikipedia, der freien Enzyklopädie
Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.
- Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
- Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
- Internet Explorer/Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
- Opera: Strg+F5
//Skriptsammlung Fliegelflagel, [[Benutzer:Schnark/js/fliegelflagel]]
(function (module) {
if (mw.loader.getState(module)) {
mw.loader.using(module).done(function () {
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.0,
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
mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:TMg/filterContributions.js&action=raw&ctype=text/javascript'); //[[Benutzer:TMg/filterContributions.js]]
mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:TMg/moveInterwikisToTop.js&action=raw&ctype=text/javascript'); //[[Benutzer:TMg/moveInterwikisToTop.js]]
mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:DerHexer/fixlinks.js&action=raw&ctype=text/javascript');
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/remindErrorMessages/r.js&action=raw&bcache=1&maxage=604800&ctype=text/javascript","text/javascript");
mwASdays = 30;
mw.loader.load('//de.wikipedia.org/w/index.php?title=User:°/mwArticleStatistics.js&action=raw&ctype=text/javascript');
var mfbOldElement = document.getElementById("templatesandbox-editform");
var mfbNewElement = document.createElement("fieldset");
mfbNewElement.setAttribute("id", "templatesandbox-editform");
mfbNewElement.innerHTML = '<fieldset id="templatesandbox-editform"><legend>Vorschau der Seite mit dieser Vorlage anzeigen</legend><input id="wpTemplateSandboxTemplate" type="hidden" value="' + mw.config.get( 'wgPageName' ) + '" name="wpTemplateSandboxTemplate" /><span class="mw-templatesandbox-page" id="wpTemplateSandboxPageLabel"><label for="wpTemplateSandboxPage">Seitentitel:</label></span> <input id="wpTemplateSandboxPage" tabindex="8" size="60" spellcheck="true" name="wpTemplateSandboxPage" class="mw-ui-input" /><input id="wpTemplateSandboxPreview" name="wpTemplateSandboxPreview" type="submit" tabindex="9" value="Vorschau zeigen" />';
if(mfbOldElement) {
mfbOldElement.parentNode.replaceChild(mfbNewElement, mfbOldElement);
}
// Kopiert von https://stackoverflow.com/questions/31891619
var mathTags = $('.mwe-math-mathml-a11y');
if (mathTags.length > 0){ //only do something when there's math on the page
window.MathJax = { //hook into MathJax's configuration
AuthorInit: function () {
MathJax.Hub.Register.StartupHook("End",function () { //when MathJax is done...
MathJax.Hub.Queue(
function(){
mathTags.removeClass('mwe-math-mathml-a11y'); // .. make the span around MathML (now MathJax output) visible
$('.mwe-math-fallback-image-inline').addClass('mwe-math-mathml-a11y'); //hide fallback images
}
);
});
}
};
mw.loader.load('https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=MML_HTMLorMML-full');//load MathJax with a suitable combined config file
}