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

Content deleted Content added
1.2
1.5
 
Line 1:
/// User:PerfektesChaos/js/pageTeaserHint/r.js
/// 2020-12-27 PerfektesChaos@de.wikipedia
/// Fingerprint:#0#3B6943683CDAA807#
/// License:CC-by-sa/4.0
///<nowiki>
(function(mw,$){
"use strict";
var Version=1.25,Signature="pageTeaserHint",Store="User:PerfektesChaos/js/"+Signature,PTH={core:{maxage:86400,site:"w:en",store:Store,sub:"core"},doc:{site:"w:en",store:Store},got:false,lazy:true,limited:true,paged:{"allpages":
{suite:".mw-allpages-nav",search:".mw-allpages-body"
},"category":
{suite:"#mw-pages",search:"#mw-pages"
},"contributions":
{suite:".mw-contributions-list",search:"#mw-content-text"
},"info":
{suite:"#mw-pageinfo-header-restrictions",search:false
Line 111 ⟶ 113:
switch(PTH.scope){
case "allpages":
case "contributions":
case "prefixindex":
case "whatlinkshere":
Line 125 ⟶ 128:
PTH.page.search=PTH.paged[PTH.scope].search;
if(PTH.page.search){
seek="a[href*=\"/wiki/\"]:not(a[href*=\"#\"])";
PTH.page.$container=$(PTH.page.search);
seek="a[href*=\"/wiki/\"]:not(a[href*=\"#\"])";
$got=PTH.page.$container.find(seek);
if($gotPTH.lengthscope!=="user"){
$got.eachnot(fiat".mw-parser-output a");}
$got.each(fiat);
}else{
finesse();}
Line 157 ⟶ 161:
switch(s){
case "Allpages":
case "Contributions":
case "Prefixindex":
case "Search":