User:PerfektesChaos/js/pageLinkHelper/d.js: Difference between revisions

Content deleted Content added
-2.3
-2.6
 
(2 intermediate revisions by the same user not shown)
Line 1:
/// Gadget-pageLinkHelper.js
// Some minor link helpers
/// 20172021-0105-21 PerfektesChaos@de.wikipedia
// ResourceLoader: compatible;
// dependencies: user, user.options,
Line 14:
( function ( mw, $ ) {
"use strict";
var Version = -2.36,
Sign = "pageLinkHelper",
Signature = "ext.gadget." + Sign,
Line 126:
// > Sign
// >< Env
// 20152021-0105-0621 PerfektesChaos@de.wikipedia
var r, // = undefined
sequence, suitable, $anchor, $clear;
Line 145:
switch ( Env.skin ) {
case "cologneblue" :
suitable = "#firstHeading";
sequence = "after";
break;
case "modern" :
suitable = "#contentSub";
sequence = "before";
break;
case "monobook" :
case "vector" :
suitable = "bodyContent.mw-body-content";
sequence = "prepend";
break;
} // switch Env.skin
$anchor = $( "#"suitable +).eq( suitable0 );
}
if ( ! $anchor.length ) {
Line 440:
// mw.loader.using()
// (OPTS.fire)
// 20172018-0108-2024 PerfektesChaos@de.wikipedia
var rls;
if ( mw.loader.getState( Signature ) !== "ready" ) {
mw.loader.state(rls Signature,= "ready"{ )};
rls[ Signature ] = "ready";
mw.loader.state( rls );
mw.loader.using( [ "mediawiki.api",
"mediawiki.user",
Line 478 ⟶ 481:
// QQmsg.flat()
// mw.hook()
// 20172020-01-2005 PerfektesChaos@de.wikipedia
var embed, i, linkUpdate, s;
Env = { skin: false,
Line 494 ⟶ 497:
case "Diff" :
Diff.flip();
break;
case "Mobile" :
break;
case "Whatlinkshere" :
Line 1,499 ⟶ 1,504:
fire();
}( window.mediaWiki, window.jQuery ) );
 
/// EOF </nowiki> pageLinkHelper/d.js