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

Content deleted Content added
1.1
1.3
 
(One intermediate revision by the same user not shown)
Line 1:
/// Gadget/logidTooltip/r.js
/// 20192020-1008-01 PerfektesChaos@de.wikipedia
/// Fingerprint:#0#75B68BF241407F27#
/// Documentation:[[w:en:User:PerfektesChaos/js/logidTooltip]]
/// @license:CC-by-sa/4.0 GPLv3
Line 7:
(function(mw,$){
"use strict";
var Version=1.13,LIT={signature:"logidTooltip",source:"0f/Arrow Blue UpperRight 001.svg",search:"&action=edit&redlink=1",selector:"data-mw-logid",npx:16,$body:false,$img:false
},OO;
function filepath(assign){
Line 17:
LIT.source=assign;}}}
function fire(){
var signature="ext.gadget."+LIT.signature,env,launch,rls;
if(mw.loader.getState(signature)!=="ready"){
rls={};
Line 25:
LIT.doc="w:en:User:PerfektesChaos/js/"+LIT.signature;
LIT.doc="[["+LIT.doc+"]]";
switch(env=mw.config.get(["wgCanonicalSpecialPageName","wgFormattedNamespaces"])){;
switch(env.wgCanonicalSpecialPageName){
case "Log":
case "Recentchanges":
case "Watchlist":
launch=true;
break;}}}
default:
launch=(window.___location.search.indexOf(LIT.search)>=0);}
if(launch){
LIT.signed=LIT.signature+"-handle";
LIT.special=env.wgFormattedNamespaces["-1"];
mw.hook(LIT.signature+"-icon").add(filepath);
mw.hook("wikipage.content").add(LIT.furnish);}}}
break;}}}
LIT.$factory=function(assigned,$anchor){
var illusive=0.75,offset=$anchor.offset(),options={anchor:true,padded:true,position:"below",verticalPosition:"below",$floatableContainer:$anchor},shift=LIT.special+"Special:Redirect/logid/"+assigned,$a=$("<a>"),r;
options.width=(12+assigned.length*0.7)+"em";
if(offset.left<0.5*window.innerWidth){