MCPcopy Create free account
hub / github.com/hoothin/UserScripts / scrollArticle

Function scrollArticle

HacgGodTurn/HacgGodTurn.user.js:1713–1719  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

1711 }
1712
1713 function scrollArticle(a){
1714 curArticle=a;
1715 if(!curSite.noScale)curArticle.classList.add("oD_sel");
1716 let pos=elementPosition(curArticle).y;
1717 if(curSite && curSite.offset)pos-=curSite.offset;
1718 scrollToControl(pos);
1719 }
1720
1721 var hasViewed=false;
1722 if(document.referrer){

Callers 1

Calls 2

elementPositionFunction · 0.85
scrollToControlFunction · 0.85

Tested by

no test coverage detected