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

Content deleted Content added
1.6
1.7
Line 1:
/// Gadget/fragmentAnchors/r.js
/// 2016-04-2024 PerfektesChaos@de.wikipedia
/// Fingerprint:#0#255EAC383945968D#
///<nowiki>
(function(mw,$){
"use strict";
var Version=1.67,FANCY="fragmentAnchors",FASC={cfg:{},siblings:"error-repeated-id",source0:"6/62/Anchor_pictogram.svg",source1:"d/d6/Anchor_pictogram_red.svg",unStart:["Anker:","wpTextbox"],vsn:Version
};
if(typeof mw.libs[FANCY]!=="object"||!mw.libs[FANCY]){
Line 14:
mw.hook("wikipage.content").remove(facet);
FASC.$content=$area;
if(FASC.locked){
FASC.$exclude=false;
}else{
FASC.$exclude=FASC.$content.find("form");}
FASC.furnish();}
function facility(){
if(FASC.large){
FASC.$content=false;
FASC.$exclude=false;
FASC.furnish();
}else{
Line 179 ⟶ 184:
$e=FASC.$content.find(seek);
if($e.length){
if(!(FASC.$exclude&&FASC.$exclude.find(seek).length)){
r[s]=$e;}}
}else{
r[s]=all[s];}}}