„Benutzer:Schnark/vector.js“ – Versionsunterschied
Erscheinungsbild
Inhalt gelöscht Inhalt hinzugefügt
K Änderung 162368568 von Schnark rückgängig gemacht; wieder neue Version |
K Änderung 162827982 von Schnark rückgängig gemacht; ein letztes Mal zurück zur alten Version |
||
Zeile 2: | Zeile 2: | ||
(function ($, mw, libs) { |
(function ($, mw, libs) { |
||
"use strict"; |
"use strict"; |
||
⚫ | |||
'?title=Benutzer:Schnark/js/fliegelflagel.js&action=raw&ctype=text/javascript&maxage=86400&smaxage=60&bcache=1'); |
|||
⚫ | |||
⚫ | |||
libs.fliegelflagel = {}; |
|||
if (mw.loader.getState(module)) { |
|||
libs.fliegelflagel.fliegelflagel = {before: function () { |
|||
libs.fliegelflagel.register('dropdown', { |
|||
⚫ | |||
var ve = $.Deferred(); |
|||
⚫ | |||
mw.hook('userjs.schnark-fliegelflagel.ve').fire(ve); |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}); |
}); |
||
libs.fliegelflagel.register('pdtest', { |
|||
} |
|||
⚫ | |||
})('ext.visualEditor.desktopArticleTarget.init'); |
|||
⚫ | |||
mw.hook('userjs.schnark-fliegelflagel.userdefine').fire({ |
|||
⚫ | |||
version: 1.0, |
|||
⚫ | |||
additional: { |
|||
⚫ | |||
dropdown: { |
|||
⚫ | |||
⚫ | |||
return action === 'view' && ns === 0 && mw.config.get('wgTitle') === 'Personendaten-Test'; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
}, |
}, |
||
⚫ | |||
pdtest: { |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
libs.fliegelflagel.register('qunit', { |
|||
⚫ | |||
⚫ | |||
⚫ | |||
only: function (ns, action) { |
|||
return ns === -1 && action === 'qunit'; |
|||
}, |
|||
⚫ | |||
⚫ | |||
⚫ | |||
}, |
}, |
||
title: 'Qunit', |
|||
⚫ | |||
⚫ | |||
⚫ | |||
only: function (ns, action) { |
|||
⚫ | |||
return ns === -1 && action === 'qunit'; |
|||
libs.fliegelflagel.register('browsertest', { |
|||
}, |
|||
⚫ | |||
title: 'Browsertest', |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}, |
|||
⚫ | |||
browsertest: { |
|||
}}; |
|||
⚫ | |||
⚫ | |||
title: 'Browsertest', |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
} |
|||
} |
}; |
||
}}; |
|||
config: { |
|||
⚫ | |||
⚫ | |||
⚫ | |||
return et.maintain(); |
|||
}; |
|||
} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
'?title=Benutzer:Schnark/js/fliegelflagel.js/define.js&action=raw&ctype=text/javascript'); |
|||
mw.loader.load(mw.config.get('wgServer') + mw.config.get('wgScript') + |
|||
'?title=Benutzer:Schnark/js/fliegelflagel.js/load.js&action=raw&ctype=text/javascript'); |
|||
//Fliegelflagel Ende |
|||
})(jQuery, mediaWiki, mediaWiki.libs); |
})(jQuery, mediaWiki, mediaWiki.libs); |
Version vom 11. März 2017, 10:47 Uhr
/*global mediaWiki*/
(function ($, mw, libs) {
"use strict";
mw.loader.load(mw.config.get('wgServer') + mw.config.get('wgScript') +
'?title=Benutzer:Schnark/js/fliegelflagel.js&action=raw&ctype=text/javascript&maxage=86400&smaxage=60&bcache=1');
//[[Benutzer:Schnark/js/fliegelflagel.js]]
libs.fliegelflagel = {};
libs.fliegelflagel.fliegelflagel = {before: function () {
libs.fliegelflagel.register('dropdown', {
scripts: '[[Benutzer:Schnark/js/dropdown.js]]',
title: 'Dropdown',
description: 'Eigenes Skript für Dropdown-Menüs',
category: 'nav'
});
libs.fliegelflagel.register('pdtest', {
scripts: [
'[[Benutzer:Schnark/js/personendaten.js]]',
'[[Benutzer:Schnark/js/diff.js/core.js]]',
'[[Benutzer:Schnark/js/personendaten.js/test.js]]'
],
only: function (ns, action) {
return action === 'view' && ns === 0 && mw.config.get('wgTitle') === 'Personendaten-Test';
},
title: 'Personendaten-Test',
description: 'Eigenes Skript zum Testen von personendaten.js',
category: 'other'
});
libs.fliegelflagel.register('qunit', {
scripts: '[[Benutzer:Schnark/js/qunit.js]]',
only: function (ns, action) {
return ns === -1 && action === 'qunit';
},
title: 'Qunit',
description: 'Eigenes Skript für QUnit-Tests',
category: 'other'
});
libs.fliegelflagel.register('browsertest', {
scripts: '[[Benutzer:Schnark/js/browsertest.js]]',
title: 'Browsertest',
description: 'Eigenes Skript für Browsertests',
category: 'other'
});
}};
libs.fliegelflagel.extratabs = {during: function (et) {
libs.extratabsMaintain = function () {
$('#footer').append(et.getExamples());
return et.maintain();
};
}};
})(jQuery, mediaWiki, mediaWiki.libs);