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

Content deleted Content added
-1.1
-1.2
Line 15:
( function ( mw, $ ) {
"use strict";
var Version = -1.12,
LIT = { signature: "logidTooltip",
source: "0f/Arrow Blue UpperRight 001.svg",
Line 61:
// < LIT.doc
// < LIT.signed
// < LIT.special
// mw.loader.getState()
// mw.config.get()
Line 68 ⟶ 69:
// 2019-10-01 PerfektesChaos@de.wikipedia
var signature = "ext.gadget." + LIT.signature,
env, rls;
if ( mw.loader.getState( signature ) !== "ready" ) {
rls = { };
Line 76 ⟶ 77:
LIT.doc = "w:en:User:PerfektesChaos/js/" + LIT.signature;
LIT.doc = "[[" + LIT.doc + "]]";
switchenv (= mw.config.get( [ "wgCanonicalSpecialPageName" ) ) {,
"wgFormattedNamespaces" ] );
switch ( env.wgCanonicalSpecialPageName ) {
case "Log":
case "Recentchanges":
case "Watchlist":
LIT.signed = LIT.signature + "-handle";
LIT.special = env.wgFormattedNamespaces[ "-1" ];
mw.hook( LIT.signature + "-icon" ).add( filepath );
mw.hook( "wikipage.content" ).add( LIT.furnish );
Line 98 ⟶ 102:
// Postcondition:
// Uses:
// > LIT.special
// > LIT.signature
// > OO
Line 111 ⟶ 116:
verticalPosition: "below",
$floatableContainer: $anchor },
shift = LIT.special + "Special:Redirect/logid/" + assigned,
$a = $( "<a>" ),
r;