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

Content deleted Content added
2.6
2.7
 
Line 1:
/// Gadget/fragmentAnchors/r.js
/// 2021-0107-1830 PerfektesChaos@de.wikipedia
/// Fingerprint:#0#107822F1378F0A71#
/// Documentation:[[w:en:User:PerfektesChaos/js/fragmentAnchors]]
/// @license:CC-by-sa/4.0 GPLv3
Line 7:
(function(mw,$){
"use strict";
var Version=2.67,FANCY="fragmentAnchors",FASC={cfg:{},siblings:"error-repeated-id",source0:"6/62/Anchor_pictogram.svg",source1:"d/d6/Anchor_pictogram_red.svg",unStart:["wpTextbox","/maplink/","Anker:"],vsn:Version
},EXPORT={},OO;
function facet($area){
Line 205:
if(all[s]){
if(FASC.$content){
if(typeof FASC.reApos!=="object"){
seek="[id='"+s.substr(1)+"']";
FASC.reApos=new RegExp("'","g");}
seek="[id='"+s.substr(1).replace(FASC.reApos,"\\'")+"']";
try{
$e=FASC.$content.find(seek);
if}catch($e.length){
$e=false;}
if($e&&$e.length&&!(FASC.$exclude&&FASC.$exclude.find(seek).length)){
r[s]=$e;}}
}else{
r[s]=all[s];}}}