User:PerfektesChaos/js/refNames/core/r.js: Difference between revisions

Content deleted Content added
1.4
1.5 2023-05-01
 
Line 1:
/// User:PerfektesChaos/js/refNames/core/r.js
/// 20222023-0805-2501 PerfektesChaos@de.wikipedia
/// Fingerprint:#0#2A79D7D1A8D94BCE#
/// License:CC-by-sa/4.0
///<nowiki>
mw.hook("refNames.config").fire({trigger:[0],rooms:[0,2,4,100],warn:["^q\\d+$","^ref\\d+$"]});
(function(mw,$){
"use strict";
var Version=1.45,Signature="refNames",THIS={lapsus:false,launch:false,reUscore:false,show:"&lt;ref&gt;",sub:"core",using:["mediawiki.api","mediawiki.storage"],warn:["^:?\\d+$","^:$","^Reference[A-Z]$","^auto(?:generated)?\\d*$",String.fromCharCode(0x5B,0x09,0x0A,0x22,0x23,0x25,0x26,0x27,0x3C,0x3E,0x5B,0x5C,0x5D,0x60,0xA0,0xAD,0xB4,0x02C6,0x02DC,0x2002,0x2003,0x2009,0x200A,0x200B,0x200C,0x200D,0x200E,0x200F,0x2018,0x2019,0x201A,0x201C,0x201D,0x201E,0x202F,0x2032,0x2033,0x2039,0x203A,0x5D)],$widget:false
},PARSER={reQuot:false,reWS:false,pending:false,$textarea:false},SOURCE={before:[".wikibase-entity-usage",".templatesUsed",".hiddencats",".limitreport"],locked:true,pics:{drag:["de","OOjs_UI_icon_trash-destructive.svg"],drop:["9b","OOjs_UI_icon_trash-invert.svg"],exch:["e9","OOjs_UI_icon_reload-invert.svg"],edit:["8a","OOjs_UI_icon_edit-ltr-progressive.svg"],wait:["de","Ajax-loader.gif"]
},section:"section",$box:false,$editor:false,$wrapper:false},VIEW={};
Line 833 ⟶ 834:
SOURCE.fresh();
group=SOURCE.grouped[SOURCE.pre.group];
if(group){
for(i=0;i<group.length;i++){
if(s===group[i].name){
Line 840 ⟶ 842:
SOURCE.exec={group:SOURCE.pre.group,seek:SOURCE.start,shift:s};
SOURCE.$deny.hide();
SOURCE.$doit.show();}}}
if(lapsus){
SOURCE.$input.css({"border-color":"#FF0000"});